-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ArcContainerImpl could skip SecureRandom initialization #4490
Comments
Interesting. How much time does this 30% represent?
Yes, it is. Although it could be accessible through the |
@Sanne pls provide more info... |
hi @mkouba - to provide more details I'll need to run those metrics again; it takes me quite some time and won't be able to do it this week. Of course the win isn't very high in absoulte terms, as Arc boots quite fast - we're talking about milliseconds. But considering the spirit of Quarkus if this uuid isn't used I'd just avoid it: it's not only about time but also about including / loading the securerandom related classes - and the system code necessary to support these. I'd remove this UUID as it seems very simple to do; you could just re-introduce it in case of need? |
Description
The 'ArcContainerImpl' is eagerly initializing an
uuid
field, which requires a Secure random call; according to flamegraphs including native time, this is taking 30% of the time it takes to boot Arc so it would be nice to skip it.Implementation ideas
The
uuid
field seems only necessary fortoString()
. I think it could be lazily initialized, I'm not sure what expectation there is in terms of having the same uuid (or not) of the same app when it's build as native.I suppose it should mimick the JVM semantics, which implies lazy initialization would actually be better.
The text was updated successfully, but these errors were encountered: