comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to speed up code which checks lots of values of an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to speed up code which checks lots of values of an array [message #74501 is a reply to message #74367] Tue, 18 January 2011 15:32 Go to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
A perfect use ARRAY_EQUAL() and the short circuit `&&' operator. Both will abort the remainder of the calculation as soon as the test fails, so depending on how often that happens, you will see a factor of few speedup.

if array_equal(LHS gt 180,0b) && array_equal(RHS lt 180,0b) then...

JD
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Double Xaxis pb with ticks
Next Topic: Why is MEAN so slow?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:35:18 PDT 2025

Total time taken to generate the page: 1.04048 seconds