Opened 11 years ago

Closed 10 years ago

#11717 closed enhancement (worksforme)

sage.schemes.generic.scheme initialization

Reported by: Julian Rüth Owned by: Jason Grout
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers: Volker Braun
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

I do not really understand why, but the initialization of sage.schemes.generic.scheme takes a bit to run:

$ time ./sage --startuptime|grep ' scheme:'
         scheme: 0.027 (spec)

The attached patch improves this:

$ time ./sage --startuptime|grep ' scheme:'
         scheme: 0.000 (spec)

The overall improvement is, of course, relatively small:

$ time for in in `seq 100`;do ./sage --startuptime>/dev/null;done
real    1m28.181s

vs.

$ time for in in `seq 100`;do ./sage --startuptime>/dev/null;done
real    1m27.629s

Attachments (1)

trac_11717_sage_schemes_generic_scheme_speedup.patch (2.4 KB) - added by Julian Rüth 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Julian Rüth

comment:1 Changed 11 years ago by Julian Rüth

Ticket can be closed. It is not an issue in 4.7.2.alpha2 anymore.

comment:2 Changed 11 years ago by Julian Rüth

Milestone: sage-4.7.2sage-duplicate/invalid/wontfix
Report Upstream: N/AFixed upstream, but not in a stable release.

comment:3 Changed 10 years ago by Volker Braun

Status: newneeds_review

comment:4 Changed 10 years ago by Volker Braun

Reviewers: Volker Braun
Status: needs_reviewpositive_review

Close as invalid

comment:5 Changed 10 years ago by Jeroen Demeyer

Report Upstream: Fixed upstream, but not in a stable release.N/A
Resolution: worksforme
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.