toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.5k stars 259 forks source link

Performance Expectations #482

Closed TheWrightDev closed 2 years ago

TheWrightDev commented 2 years ago

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?

jzabroski commented 2 years ago

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

jzabroski commented 2 years ago

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