[xml] Query Regarding Buffer allocation scheme in Libxml



Hi Daniel,

 

          I have a query regarding the buffer allocation scheme used in libxml, each time a document is sent for parsing libxml creates a buffer of size 4k*2 initially, and then increases this if the doc happens to exceed this size. My query is, whether there is some specific reason why the original buffer is not used, rather than allocating another buffer and doing a memmove.  

 

Any clarification would be appreciated

 

Thanks & Regards

Ashwin

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]