[dotnet] fix template caching#17476
Conversation
Review Summary by QodoEnable template caching in dotnet devtools generator
WalkthroughsDescription• Enable template caching by storing compiled generators • Significantly improves devtools generation performance • Fixes unused caching infrastructure in TemplatesManager Diagramflowchart LR
compile["Handlebars.Compile<br/>templateContents"]
cache["m_templateGenerators<br/>cache"]
return["Return generator"]
compile -- "Store compiled<br/>generator" --> cache
compile -- "Return to caller" --> return
File Changes1. third_party/dotnet/devtools/src/generator/CodeGen/TemplatesManager.cs
|
Code Review by Qodo
1. Edits under third_party/dotnet
|
💥 What does this PR do?
Code set up caching but didn't use it. Significantly faster devtools generation with it enabled
🤖 AI assistance
🔄 Types of changes