Am Donnerstag, den 08.10.2009, 18:26 +0400 schrieb Nikolay Sivov: > Markus Stockhausen wrote: > > Hi, > > > > the last week I took some time to implement the first try of BSTR > > caching in oleaut.c. On the one hand this will fix a bug, on the other > > hand Wine could save some CPU cycles and can catch up with the speed of > > the native implementation. > > > > + * Windows standard behaviour is something like this: Keep 3 freelists of > > + * about 6-8 entries. One is for memory areas less than 32 bytes, the > > second > > + * is for areas between 32 and 64 bytes and the third is for strings > > larger > > + * than 64 bytes. Memory is allocated with length aligned to 16 bytes > How did you guess this? Is it document somewhere? >
No, only the result of solving bug 12460, debugging & a few testcases that produce IMalloc log entries and in this way indirectly reflect the behaviour of native oleaut (at least XP version). Markus