-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #18215: Huge speed up for hash of quadratic number field elements
Before {{{ sage: L.<a> = QuadraticField(-7) sage: b = a - 13/7 sage: timeit("hash(b)") 625 loops, best of 3: 54 µs per loop }}} After {{{ sage: L.<a> = QuadraticField(-7) sage: b = a - 13/7 sage: timeit("hash(b)") 625 loops, best of 3: 97.7 ns per loop }}} ... looks like a x500 speed up :-) As a consequence (and with #18213 applied) Before {{{ sage: %time gr = polytopes.great_rhombicuboctahedron() CPU times: user 5.68 s, sys: 68 ms, total: 5.75 s Wall time: 5.7 s }}} After {{{ sage: %time gr = polytopes.great_rhombicuboctahedron() CPU times: user 2.71 s, sys: 36 ms, total: 2.75 s Wall time: 2.69 s }}} See also: #18226 URL: http://trac.sagemath.org/18215 Reported by: vdelecroix Ticket author(s): Vincent Delecroix Reviewer(s): Nathann Cohen
- Loading branch information
Showing
2 changed files
with
42 additions
and
14 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