]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove custom pool chunk size for StoreEntry.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 21 Sep 2015 13:19:28 +0000 (15:19 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 21 Sep 2015 13:19:28 +0000 (15:19 +0200)
As an historic optimization StoreEntry uses a custom pool chunk size of 2MB.
Knowledge of the actual benefits from this optimization has been lost in time,
and it's not possible to accurately measure its actual impact in all load
scenarios; at the same time this optimization is blocking other potentially
useful developments.
This change is therefore considered a potential performance regression in
some load scenarios.

src/store.cc

index d386fa29781db3ade5c684742e3c252002049fd7..3e04c45b505f7e20870fb91c670347de8c363c25 100644 (file)
@@ -156,7 +156,6 @@ StoreEntry::operator new (size_t bytecount)
 
     if (!pool) {
         pool = memPoolCreate ("StoreEntry", bytecount);
-        pool->setChunkSize(2048 * 1024);
     }
 
     return pool->alloc();