Ticket #7918 (closed defect: fixed)
log(float(_)) is really slow
| Reported by: | bober | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.3 |
| Component: | performance | Keywords: | log |
| Cc: | mvngu | Work issues: | |
| Report Upstream: | N/A | Reviewers: | |
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Somewhere between 4.1 and 4.3, log(x) got really slow when x is a float.
Example:
sage: version()
'Sage Version 4.3, Release Date: 2009-12-24'
sage: x = float(5)
sage: x
5.0
sage: timeit('log(x)')
625 loops, best of 3: 362 µs per loop
sage: version()
'Sage Version 4.1, Release Date: 2009-07-09'
sage: x = float(5)
sage: timeit('log(x)')
625 loops, best of 3: 7.26 µs per loop
Change History
Note: See
TracTickets for help on using
tickets.

Although it is not the same issue, this will be fixed by #7822. I have a new patch for that problem which brings the timings back to comparable values.