in reply to boolean calculation with very large data

Maybe some of the answers in Efficient algorithm needed to split Set::IntSpan objects can be of inspiration to you.

Apart from that I agree with Corion that inversion lists are a good technique for this sort of problem.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: boolean calculation with very large data