-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more performance optimizations (#92)
The two big changes here are bypassing __init__ in a special case and directly setting instance attributes via reaching into self.__dict__. These are optimizations in a potential hot path that were isolated via exhaustive profiling and experimentation and save ~%16 in certain benchmarks. Do not try this at home.
- Loading branch information
1 parent
6094f9f
commit 19b1519
Showing
2 changed files
with
27 additions
and
17 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