[Mono-dev] [PATCH] Optimize Encoding.GetByteCount
bmaurer at ximian.com
Wed Oct 25 16:51:57 EDT 2006
On the 2.0 profile, Encoding uses the char*/byte* version of encoding
methods to avoid allocating memory. One code path missed this
optimization, I've attached a fix.
This code path ends up being used in Banshee quite a bit on their tree
view (basically, every time the model is queried, this method gets called
in passing String objects to char*).
A few things to think about:
- It might pay to do something on the 1.0 profile as well.
- Paolo, can you comment on how this kind of change works with the moving gc?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 712 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061025/8d07183e/attachment.bin
More information about the Mono-devel-list