Ticket #7918 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by burcin

  • Milestone set to sage-4.3.1

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.

comment:2 Changed 3 years ago by burcin

  • Cc mvngu added
  • Status changed from new to closed
  • Resolution set to fixed

I'm closing this since #7822 was merged and it addresses this issue.

Note: See TracTickets for help on using tickets.