[PATCH] utf-8 encoder/decoder optimizations
Dmitry Vasiliev
lists at hlabs.spb.ru
Mon Nov 27 14:38:32 GMT 2006
John Arbash Meinel wrote:
> As another test, you could run:
>
> bzr selftest --benchmarks 'cache_utf8.*cached'
>
> Which should also show the difference in encoding/decoding time. On my
> laptop, I don't see much of a difference. Probably because the majority
> of the time is spent in doing dictionary lookups.
The patch only speed up the case when items are missed from the cache.
> One thing that might
> be interesting, would be to write a 1M_by_1 test, which creates 1M
> revision ids, and then encodes / decodes all of them. That would
> probably show the improvement for this change.
Good idea, I'll write it.
--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
More information about the bazaar
mailing list