javaperformancelombok

Can lombok decrease performance?


I am really enjoy the feature of project lombok that get rid of boilerplate code. My senior suggest me that lombok seems to use reflection to reduce boilerplate code and I once heard that using of reflection effect performance. My question is are there any issues to use project lombok?


Solution

  • Lombok does not use reflection at runtime. It hooks into the compiler internals and adds code to classes at compile-time, which is then compiled normally.