[DUG] In [set] efficiency
Ross Levis
ross at stationplaylist.com
Wed Jun 8 16:56:44 NZST 2016
I'm wondering which is more efficient to process...
if (a=1) or (a=2) then ...
or
if a in [1,2] then ...
If the answer is the first method, does it make a difference if more numbers
are checked, eg. if a in [1..3,5] then
Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20160608/d0daa7bf/attachment.html
More information about the Delphi
mailing list