-
-
Notifications
You must be signed in to change notification settings - Fork 324
Compile all referenced definitions #565
Copy link
Copy link
Closed
Labels
Milestone
Description
From #564 (comment)
Looking at the generated container code, I can see if only contains definition for top-level classes (auto-wired). However, each all its dependencies are delegated to a regular resolving mechanism. Since in my case most of the underlying classes are also auto-wired, resolving seems to take a lot of time to parse annotations and typehints. This was kind of surprising to me: I expected the whole dependencies tree to be compiled.
The compiler could make a list of all definitions referenced (get() definitions) and compile those. That would solve partially #547 because almost all classes created by the container would be found and compiled.
Reactions are currently unavailable