You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SciJava Context and Services have been diligent about lazy initialization to optimize startup speeds. However, this can delay performance hits, leading to perceivable performance drops the first time various functions are invoked.
Thus we should provide a Context.preload method that performs an initialize-style function across all Services. This allows it to be opt-in both at the Service implementation level, and Context consumption level (e.g. developers could choose to make a Context and not call preload).
The actual preload implementations should perform necessary construction and caching on a dedicated thread to mitigate visible performance problems for users.
Activity
Initialize Formats on separate thread
Use wait/notify during format initialization
ctrueden commentedon Mar 23, 2015
We may want
preloadnot to spawn its own thread... but you can always write:if that's what you want.
Fix FormatService initialization evilness
Fix FormatService initialization evilness
Fix FormatService initialization evilness
Fix FormatService initialization evilness