Commit

8394a92

Alright, did one version that uses 90 Mb (constant, regardless of the number of lines in the table) and takes 1 min to run over 1M lines. If you ever get interested, poke me I’ll kindly send you the code or make a gist out of it.