Closed mbenkmann closed 9 years ago
From matthias...@gmail.com on March 24, 2013 23:58:26
=> Type Optimization
Labels: -Type-Feature Type-Optimization
From matthias...@gmail.com on April 01, 2013 14:48:46
Fixed in 270ef0245c9c The idea of rewriting xml.Hash with malloc/free was discarded because there's too much existing code that would have to be changed to manually call free(). Instead xml.Hash was rewritten to keep text in small chunks in a linked list with specialized base64 decoding and encoding methods that can work chunk-based without constructing at any time the whole string. This fixes the big leaks related to the element in the packagedb.
In a test I sent 200 SIGUSR2 to go-susi and the process did not grow beyond 150MB. This should allow (with respect to this issue) for an uptime of at least 1 year which is enough.
Status: Done
From matthias...@gmail.com on March 25, 2013 07:00:43
Every time the package database is read in again we lose memory. Fix: Rewrite xml_hash.go to use malloc/free rather than GC'ed memory.
Original issue: http://code.google.com/p/go-susi/issues/detail?id=101