Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294747

Add an APCu classloader with a single entry

$
0
0

Problem/Motivation

Have been meaning to open this issue for years now. Latest reminder was bojanz linking to https://github.com/composer/composer/pull/5174#issuecomment-208824818

The apcu classloader from Symfony uses an entry-per-class. This means lots of sets and gets on each request. Also APCu doesn't handle LRU, or getting full very well, so it's prone to fragmentation.

Proposed resolution

Add an alternative APCu classloader which maintains a single entry. The main challenge is to avoid write-stampedes. Fetching and writing at the end of the request, in a similar way to CacheCollector would help vs. that.

Also need to be careful that the array size doesn't get ridiculous.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 294747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>