-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gf: improve ordering of operations based on performance estimates
In the last commit, I didn't expect NamedTuple to hammer our performance, but was starting to notice performance problems with trying to call constructors. It's somewhat violating our best-practices in two common cases (both the constructor and structdiff functions are dispatching on non-leaf types instead of values). That was putting a lot of strain on the cache, and so it forms a good test case. Keeping those cases out of the cache, and searching the cache in a more suitable order (significant mainly for constructors because there are always so many of them), offsets that--and seems to probably make us faster overall as a bonus because of that effect!
- Loading branch information
Showing
3 changed files
with
34 additions
and
8 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