Posted on Jun 20
I wanted to learn about the ClassFile API, and as a small pet project, I created a benchmark to compare how faster a generated class is than a reflection-based approach when we want to populate a POJO from a Map.
TL;DR: it turned out, the generated bytecode was 5x faster than using reflection.
Details here, enjoy: https://github.com/erosb/learn-classfile-api
And please prove me wrong if you find any mistakes in the benchmark 🙂
Top comments (0)
Subscribe
Templates let you quickly answer FAQs or store snippets for re-use.
Code of Conduct • Report abuse
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment’s permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse
답글 남기기