-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Started IntFlagMeta. * _IntFlagNamespace getitem/setitem/contains operators. * Initial intflag implementation completed (other than operators). Average times: ``` Making highest priority, os.SCHED_RR sys.getswitchinterval 0.5 sched_getscheduler 2 sched_getparam posix.sched_param(sched_priority=1) sched_getaffinity {7} sched_getprioritymax 0 sched_getprioritymin 0 sched_rr_getinterval 0.09999999000000001 nice -20 warming up benchmark starts PyIntFlag.__call__(4) (existing member) 0.4027703850006219 µs BasicHikariEnum.__call__(4) (existing member) 0.11296135399970808 µs PyIntFlag.__call__(71) (new composite member) 18.099853999956395 µs BasicHikariEnum.__call__(71) (new composite member) 2.48106900107814 µs PyIntFlag.__call__(71) (existing composite member) 0.39969006100000115 µs BasicHikariEnum.__call__(71) (existing composite member) 0.26146456899914483 µs ``` * Added disabling of cache for large flag types like permissions which could use gigabytes of memory for each possible combination. * Adjusted caching strategy for int enums. * Adjusted caching strategy for int enums. * Refined IntFlag implementation, which is now a normal Flag and acts like a set. * Revert "Made flag enums lazily load, speeding up cache and event ops." This reverts commit aecccc5. * Fixed multiple flag bugs. * Flake8 * Fixed edge-case error. * Tidied up some documentation. * Finished testing enums. * Variables now show before methods in docs. * Fixed #256 -- issues with documentation function anchors. * PR feedback. * Fixed a MyPy issue and added an override for symmetricdifference. * Removed commented out lines from mako docs.
- Loading branch information
Nekokatt
authored
Oct 4, 2020
1 parent
55a9673
commit 06908ba
Showing
23 changed files
with
1,800 additions
and
591 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
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
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.