]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove custom pool chunk size for StoreEntry.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 24 Sep 2015 05:29:46 +0000 (22:29 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Sep 2015 05:29:46 +0000 (22:29 -0700)
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 521c9d08f0eb8902572b90aa12ec7c0c0464f7dd..8bc452f8e880b2fa462781efa7e3b289e07f0916 100644 (file)
@@ -151,7 +151,6 @@ StoreEntry::operator new (size_t bytecount)
 
     if (!pool) {
         pool = memPoolCreate ("StoreEntry", bytecount);
-        pool->setChunkSize(2048 * 1024);
     }
 
     return pool->alloc();