Skip to content

ArcContainerImpl could skip SecureRandom initialization #4490

@Sanne

Description

@Sanne

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 for toString(). 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/arcIssue related to ARC (dependency injection)kind/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions