Community
Participate
Working Groups
Right now all bindings for the system parts are cached immediately, and this takes tens of seconds to finish (causing the first operation that references a compiler's system environment to wait until it completes). This is done so that you can reference functions, fields, libraries, etc without needing imports or qualifications. For performance it might make sense to enable lazy loading while maintaining current behavior.
This is now done on demand.
Paul - this isn't really done in the way I meant. While SystemEnvironment.initializeSystemPackages() is called the first time the system environment is needed, it's still deserializing all the IRs up front which is the majority of the init time. This enhancement was meant to only deserialize a part when it's actually needed.
Closing this work item