Perf speedups, ~30% faster in all cases. And new batching algorithm.
Add new example