This is great. The optimized int methods are about 20 times faster. Your byte array conversion indeed does not work but with a little googling I found fast BitSet to byte[] functions. It's now about 30 times faster than before. BigInts are still 5 to 10 times slower than ints but I guess that's natural. 

here's the commit eisental/RedstoneChips@366db7b220bebc9605e0c2e65fef7894a0e39f1d