Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #28295 [VarExporter] optimize dumped code in time and space (ni…
…colas-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [VarExporter] optimize dumped code in time and space | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Let's squeeze some more µs when running exported code. On a simple case run 100k times with a few objects, I go from 1.8s to 1.5s. The generated exports are also a bit smaller if it matters. This works by: - using local variables instead of manually dealing with a stack - creating more optimized object hydrators for internal classes This PR also fixes handling of hard references that are bound to external variables. Commits ------- 07e90d7 [VarExporter] optimize dumped code in time and space
- Loading branch information
Showing
20 changed files
with
308 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.