2006-12-30 Alexander Olk <alex.olk@googlemail.com>
authorAlexander Olk <aolk@mono-cvs.ximian.com>
Sat, 30 Dec 2006 11:02:56 +0000 (11:02 -0000)
committerAlexander Olk <aolk@mono-cvs.ximian.com>
Sat, 30 Dec 2006 11:02:56 +0000 (11:02 -0000)
commite3e4af8b3d90d4761edfe49186061505c700d6f4
treeadc59e6147436bf45cd0b29fbfb4e972c7a6df1d
parentc3948900e25c08f942c43be8bc0a7b5383a49a3f
2006-12-30  Alexander Olk  <alex.olk@googlemail.com>

* gdipFunctions.cs: Don't create "millions" of byte arrays in
GdiPlusStreamHelper. Just create a default size array and resize it
only when needed. (as an example: the FileDialog sample created more
than 1700 new byte arrays on my system before the patch, now only 74)

svn path=/trunk/mcs/; revision=70253
mcs/class/System.Drawing/System.Drawing/ChangeLog
mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs