0
votes
0answers
75 views

Bit array not working as fast as expected [closed]

I recently downloaded the bitarray module from here, for a faster prime sieve, but the results are dismal. from bitarray import bitarray from numpy import ones from timeit import timeit def ...
1
vote
1answer
103 views

What specific optimizations can be made to this BitArray class, and how can they be implemented?

Here is the current code for the BitArray class needing optimization (implemented on big integers): import itertools ################################################################################ ...