Skip to content

Optimize context initialization #2

@tylertreat

Description

@tylertreat

One of the most significant framework issues right now is context initialization. The XmlApplicationContext initialization process takes about 1-2 seconds to complete with the biggest bottleneck being post processing, specifically classpath component scanning (I believe, but I haven't done any real benchmarking).

Disabling component scanning in infinitum.cfg.xml drastically improves startup time (from about 2100 milliseconds to 900 milliseconds on my MacBook), so we may want to look into better ways to perform this operation (although performant options are fairly limited on Dalvik).

Further profiling is needed, but I think there is some optimization that can be done in this space.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions