On 04/26/2013 05:07 PM, Pádraig Brady wrote: > I've rebased this to master and attached. > The rebase wasn't trivial so I might have messed up. > The cut.pl test is now failing on master. Could you have a look. > Also could you add a test (or just a bit of shell) to demonstrate > which options the memory is not allocated for example. > Ideally some pathological option combo that no longer > allocates huge amounts of RAM. I refactored a little more (see next_item()). Also split to two patches and added some benchmarks. Will push the attached in a few hours. thanks, Pádraig.