Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-tune the Qute benchmark #2

Closed
wants to merge 2 commits into from
Closed

Conversation

mkouba
Copy link

@mkouba mkouba commented Jun 23, 2023

  • use a generated value resolver
  • use a "computed property"

This should make the comparison a little bit more fair because Qute is primarily designed to work with Quarkus where we generate some stuff during the build.

- use a generated value resolver
- use a "computed property"
@mkouba
Copy link
Author

mkouba commented Oct 12, 2023

FTR in quarkus 3.5+, there is a patch related to some JDK problems that improves the performance significantly in some benchmarks even by ~ 30%).

@fercomunello
Copy link

Great job, very interesting @mkouba!

  • Do you think it's viable to create an official JTE extension for Quarkus like this Vert.x one?
  • And what kind of stuff is generated during the Quarkus build for Qute?

Actually I don't see JTE as a replacement for Qute, they just have different purpouses I believe:

  • With Qute I can do general templating like emails not just web pages and also improves the code quality since it's very well integrated with Quarkus;
  • And compiled JTE it almost looks like pre-compiled JSPs so the rendering performance is very high (few CPU usage) specially for heavy web pages & hypermedia sytems.

Really appreciate your work, we're talking about this on Twitter btw..

@mkouba
Copy link
Author

mkouba commented Nov 27, 2023

Great job, very interesting @mkouba!

Do you think it's viable to create an official JTE extension for Quarkus like this Vert.x one?

For sure. You can propose a new Quarkiverse extension. There's already the quarkus-freemarker extension maintained by the community.

And what kind of stuff is generated during the Quarkus build for Qute?

So in Qute the main things that we do during the build are (a) validations (e.g. the template structure and the optional type-safe parts of a template) and (b) generation of optimized value resolvers (i.e. components that know how to resolve properties of Java classes).

Actually I don't see JTE as a replacement for Qute, they just have different purpouses I believe:

With Qute I can do general templating like emails not just web pages and also improves the code quality since it's very well integrated with Quarkus;

And compiled JTE it almost looks like pre-compiled JSPs so the rendering performance is very high (few CPU usage) specially for heavy web pages & hypermedia sytems.

Really appreciate your work, we're talking about this on Twitter btw..

It seems that this post was removed ;-).

@fercomunello
Copy link

@mkouba Thanks for the clarification! I'm doing some htmx projects using Jakarta MVC currently but soon I'll make a Quarkus version too that's I pretend to build a JTE extension as far as possible.

The tweet was deleted to avoid duplicating the same question as here (forgot to update, sorry about that).
Link of the thread.

@mkouba
Copy link
Author

mkouba commented Mar 19, 2024

Closing - there's no interest in merging 🤷.

@mkouba mkouba closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants