-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connection.setstate passes the object's OID as a parameter to the hel…
…per Connection._setstate. This is a performance optimization for PyPy (profiling shows many recursive calls to Persistent.__getattribute__, and recursive calls seem to trouble the PyPy JIT; this eliminates many of them when loading objects): "Transaction", AFTER BEFORE "Add 3000 Objects", 20205 18505 "Update 3000 Objects", 24191 18807 "Read 3000 Warm Objects", 28920 26671 "Read 3000 Cold Objects", 28745 27487 "Read 3000 Hot Objects", 29563 27487 "Read 3000 Steamin' Objects", 1033758 916587
- Loading branch information
Showing
1 changed file
with
11 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