[Xapian-tickets] [Xapian] #325: flint_table.cc uses zlib inefficiently

Xapian nobody at xapian.org
Tue Feb 3 05:12:55 GMT 2009


#325: flint_table.cc uses zlib inefficiently
---------------------------+------------------------------------------------
 Reporter:  tlipcon        |       Owner:  olly
     Type:  enhancement    |      Status:  new 
 Priority:  normal         |   Milestone:      
Component:  Backend-Flint  |     Version:      
 Severity:  normal         |   Blockedby:      
 Platform:  All            |    Blocking:      
---------------------------+------------------------------------------------
 FlintTable reallocates the zlib stream object for every read and write.
 This is inefficient as it causes a lot of small mallocs, which translates
 to a lot of mmamps, brks, and munmaps.

 This patch fixes the issue and speeds up "make flint-check" by about 20%
 on my machine. It speeds up indexing of a large database by a large factor
 and reduces system CPU percent from around 40% to around 2%.

-- 
Ticket URL: <http://trac.xapian.org/ticket/325>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list