<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have found that if(nrow(d.table) != 0) is significantly reduces performance of my application.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Could you please advise on faster ways to figure that data.table doesn’t contains any rows. The fastest I have found is length(d.table$column) != 0.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Andrii Riabushenko</span></b><span style='font-family:"Arial","sans-serif";color:navy'> <br></span><b><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#8080FF'>BARCLAYS CAPITAL</span></i></b><i><span style='font-family:"Arial","sans-serif";color:navy'> <br></span></i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>30 Fizkultury street<br>Kiev 03150, Ukraine<br>Global Dial: 8593 4077</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>External Dial: +380 4459 34077<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><a href="mailto:Andrii.Riabushenko@barclays.com">Andrii.Riabushenko@barclays.com</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div>
<FONT face=Arial size=2><SPAN style="FONT-SIZE: 11pt"><FONT 
face="Times New Roman">
<P class=MsoNormal 
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">_______________________________________________<O:P></O:P></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"><O:P></O:P></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">This 
e-mail may contain information that is confidential, privileged or otherwise 
protected from disclosure. If you are not an intended recipient of this e-mail, 
do not duplicate or redistribute it by any means. Please delete it and any 
attachments and notify the sender that you have received it in error. Unless 
specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or an 
official statement of Barclays. Any views or opinions presented are solely those 
of the author and do not necessarily represent those of Barclays. This e-mail is 
subject to terms available at the following link: </SPAN><A 
href="http://www.barclays.com/emaildisclaimer"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">www.barclays.com/emaildisclaimer</SPAN></A><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial">. 
</SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">By 
messaging with Barclays you consent to the foregoing.<SPAN 
style="mso-spacerun: yes">  </SPAN>Barclays </SPAN><SPAN lang=PT 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: PT">offers 
premier investment banking products and services to its clients 
through</SPAN><SPAN lang=PT 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"> 
</SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.<SPAN 
style="mso-spacerun: yes">  </SPAN>This email may relate to or be sent from 
other members of the Barclays Group.<I 
style="mso-bidi-font-style: normal"><O:P></O:P></I></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Expert Sans Regular','sans-serif'; mso-fareast-language: EN-GB; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">_______________________________________________<O:P></O:P></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"></FONT></SPAN></P></FONT>
</body></html>