]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1853874, r1853938 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 13 Mar 2019 12:32:42 +0000 (12:32 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 13 Mar 2019 12:32:42 +0000 (12:32 +0000)
commit3faceab3d6c38092275bbf4024357b1bcc3d4d53
tree953c23f137527525a7f3977ebf4c422d97d145de
parent1857a75939bfde1329b96be752bad160c03cd052
Merge r1853874, r1853938 from trunk:

mod_cache_socache: avoid pool to heap reallocation.

Below some threshold, the previous code tried free (sub-)pooled memory ASAP by
moving small buffers (< capacity / 2) to a heap bucket. But this is not really
an optimization because first it requires at some point to allocate more than
the configured capacity, and second since this happens during response handling
the pool is about to be destroyed soon anymay.

This commit simply keeps the data in the subpool and uses a pool bucket for the
output brigade to take care of the lifetime until it's consumed (or not).

Follow up to r1853874: CHANGES entry.
Submitted by: ylavic
Reviewed by: ylavic, icing, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1855407 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
modules/cache/mod_cache_socache.c