toddams/RazorLight

Performance Expectations

TheWrightDev opened this issue · 2 comments

We were looking for something to easily crank out some template emails and initially this seemed like a good way to go. We made a project with our .cshtml files as embedded resources but that first run for each template is just so slow. Especially when developers are iterating on a layout are now waiting an additional 30+ seconds just to see how a change is rendered.

For example, a relatively simple one page with template with no includes or anything extra:
image

Is this normal? Is there anything we can do ahead of time to cut down the initial load for these?

It would need to be precompiled. There is code in the main branch to do just that, but nobody ever productionalized it. PRs welcome.

Closing since it seems like you're not interested in working on this.