Skip to content

lru cache for jinja env - #219

Merged
vbharadwaj-bk merged 1 commit into
mainfrom
lru-cache-for-jinja-env
Sep 12, 2026
Merged

lru cache for jinja env#219
vbharadwaj-bk merged 1 commit into
mainfrom
lru-cache-for-jinja-env

Conversation

@asglover

Copy link
Copy Markdown
Collaborator

I was doing a bit of profiling and noticed that getting the env costing a lot and making it so that the there was no template caching. With the lru cache, getting the env is faster and that env has the template cached. All in all it drops the templating cost from ~100 -> ~10 ms each TPP. A small, but not insubstantial speedup.

@asglover asglover added the ci-ready Triggers CI checks for a pull request label Sep 12, 2026
@vbharadwaj-bk
vbharadwaj-bk merged commit dbe8544 into main Sep 12, 2026
2 checks passed
@vbharadwaj-bk
vbharadwaj-bk deleted the lru-cache-for-jinja-env branch September 12, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-ready Triggers CI checks for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants