Ticket #325 (closed enhancement: fixed)
flint_table.cc uses zlib inefficiently
| Reported by: | tlipcon | Owned by: | olly |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.11 |
| Component: | Backend-Flint | Version: | SVN trunk |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | All | Blocking: |
Description
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%.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

