3 ms·
> using binary operators [...] bad code, regardless of context > the performance profile is dominated by bad algorithms, wrong data structures Do you know how
by viraptor 9y ago
> using binary operators [...] bad code, regardless of context
> the performance profile is dominated by bad algorithms, wrong data structures
Do you know how you often implement good algorithms and data structures? You wouldn't implement a bloom filter as a high level array of 1/0 integers, would you?
- Illniyar 9y agoI would definitely implement a bloom filter with an array of booleans, and will not use bit operations to modify the cells. Whether I use array access or a bitmask will mean nothing performance-wise, since the bloom filter itself is likely already speeds up a different algorithm by an order of magnitude.