http://qs321.pair.com?node_id=1011800


in reply to Evolving a faster filter?

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.