Skip to content

Reduces detaching in HuffdicDecompressor::unpack

Carl Schwan requested to merge work/carl/detaching-unpack into master

Use .at instead of operator[] to avoid detaching

Before (using polish dictionary from BUG 475975 as input):

RESULT : TextTest::benchmarkRead(): 21,672 msecs per iteration (total: 86,688, iterations: 4)

After:

RESULT : TextTest::benchmarkRead(): 4,190.7 msecs per iteration (total: 16,763, iterations: 4)

Merge request reports

Loading