datanest.batch_size changed from 20000 to 10000 as that seems to be the best number so far (based on not very rigorous but benchmarks anyway)
TODO: better benchmarks or harvesting profiling data compilation