forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Levkivskyi
committed
Feb 16, 2018
1 parent
702347a
commit e0c978b
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 10 additions & 3 deletions
13
Misc/NEWS.d/next/Library/2018-02-15-08-18-52.bpo-31333.4fF-gM.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
``_abc`` module is added. It is speedup module implemented in C for | ||
``abc``. Creating ABC subclass and calling ``isinstance`` or ``issubclass`` | ||
with ABC subclass are up to 1.5x faster. | ||
``_abc`` module is added. It is a speedup module with C implementations for | ||
various functions and methods in ``abc``. Creating an ABC subclass and calling | ||
``isinstance`` or ``issubclass`` with an ABC subclass are up to 1.5x faster. | ||
In addition, this makes Python start-up up to 10% faster. | ||
|
||
Note that the new implementation hides internal registry and caches, previously | ||
accessible via private attributes ``_abc_registry``, ``_abc_cache``, and | ||
``_abc_negative_cache``. There are three debugging helper methods that can be | ||
used instead ``_dump_registry``, ``_abc_registry_clear``, and | ||
``_abc_caches_clear``. |