Skip to content

Cache protectionForcedOff in context#486

Merged
bitterpanda63 merged 15 commits intomainfrom
cache-force-protection-off
Sep 29, 2025
Merged

Cache protectionForcedOff in context#486
bitterpanda63 merged 15 commits intomainfrom
cache-force-protection-off

Conversation

@bitterpanda63
Copy link
Copy Markdown
Member

@bitterpanda63 bitterpanda63 commented Sep 26, 2025

We now cache protectionForcedOff, this helps performance for requests where there are thousands of operations that need to be scanned, this can cause conflicts calculating whether protection is forced off under high loads and degrading performance.

Simply: global objects are less performant, especially for single-interpreter apps, compared to context variables.

@bitterpanda63 bitterpanda63 merged commit e578324 into main Sep 29, 2025
123 of 125 checks passed
@bitterpanda63 bitterpanda63 deleted the cache-force-protection-off branch September 29, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants