[Mono-dev] [PATCH] Optimize Encoding.GetByteCount

Aaron Bockover abockover at novell.com
Wed Oct 25 17:19:53 EDT 2006


Thanks Ben!
--Aaron


On Wed, 2006-10-25 at 16:51 -0400, Ben Maurer wrote:
> Hey guys,
> 
> 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?
> 
> -b
> _______________________________________________ Mono-devel-list mailing list Mono-devel-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list