<div dir="ltr"><div>Happy New Year!</div><div><br></div><div>I have been doing some experiments with Leyden and realized something: there is some code at startup/initialization that never gets optimized but is impacting on startup and warmup time.</div><div><br></div><div>This was a realization while doing comparisons with native/graalvm images of the same code.</div><div><br></div><div>For example: a REST API. It has some initialization, port opening, reading configurations, etc... that run only once. So the code will never be trained. But it always runs at startup, impacting the time to first response.</div><div><br></div><div>Compared to a native image, the native image may not have it optimized, but at least it is already compiled, not interpreted. Therefore, the native image starts faster.</div><div><br></div><div>So, how can I tell Leyden to please compile and cache those functions, even if they are going to be run just once, even if they are not optimized at all, even if those compilations can get discarded after a couple of seconds?</div><div><br></div><div>Or are we just going to assume that that code, which is impacting startup time, doesn't need to be pre-compiled because we are focusing only on optimizations made by the JVM on runtime?</div><div><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Kind regards,<br>María Arias de Reyna Domínguez<br>Senior Software Engineer<br>She / Her / Hers<br><a href="mailto:ariasdereyna@redhat.com" target="_blank">ariasdereyna@redhat.com</a></div></div></div></div>