Commit 8d0bce6
authored
Change dec2bitarray to a faster implementation
The current and previous implementations of dec2bitarray are a huge chunk of time of the simulation.
This implementation is the fastest that I have found, comparing with the previously used ones.
Is based on this SO answer: https://stackoverflow.com/a/302271611 parent 9dfe948 commit 8d0bce6
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
0 commit comments