|Perl Monk, Perl Meditation|
Re: Evolving a faster filter?by BrowserUk (Pope)
|on Jan 05, 2013 at 17:25 UTC||Need Help??|
As an aside, thousands of objects do not normally come into being instantaneously or en masse; but rather come into being over time.
As your filters are static for any given run of the program, why not pass them through the filters at instantiation time and set a flag? (And perhaps re-run it any time one of the filtered attributes changes.)
Then when you need the filtered subset, you only need a single boolean test for each object.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.