Skip to content

Remove use of async / Promises in templateResolver & messageResolver #33

@ultraq

Description

@ultraq

I thought it'd be good to make these functions asynchronous so that developers could add virtually anything they wanted in there, but it's coming at the cost of quite a lot of performance. Having to force the JS engine to constantly context switch between the various promises had a lot of overhead, and as such slows down processing significantly.

If I do force them to be synchronous, then particularly for the fragmentResolver function, it would no longer on par with what the original Thymeleaf allows for fragment resolution 🤔

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions