Skip to content

Only look up diff size limit flags once per request

username-removed-443319 requested to merge cache-diff-size-limits into master

Without this, we'd query for the feature flag for every diff file - which can be a lot on a single page! Even worse, we'd do it several times for each diff file, as these methods are assumed to be free!

Once we've run the experiment with the feature flags, I'll remove them anyway. For now, caching in RequestStore should remove the performance regression I introduced.

Merge request reports