in reply to Faster Hash Slices

What Tux said above.

The split + slice assign itself (times 8e6) might take 10 seconds. If you run out of memory, it can take "forever". Your hashes may easily consume > 4GB, not counting the data.

Improve your data layout. Only use a hash for indexing. Keep data packed where possible. Consider using a database...