Opened 14 years ago

Closed 13 years ago

#909 closed defect (duplicate)

Cython without recompile

Reported by: jvoight Owned by: was
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: interfaces Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Loading a file in sage by

load foo.spyx

seems to result in a recompile every time--or at least it is doing something that takes time. Is this really necessary, or is something else going on? Shouldn't it instead check to see if there has been a change to foo.spyx? (This recompiling is expensive if the Cython file is quite long!)

Change History (2)

comment:1 Changed 14 years ago by mabshoff

  • Milestone set to sage-feature

Well,

if we had a makefile or SCons based buildsystem for external Cython code like the sagelib this wouldn't happen. I think it used to be the way that the compiled objects would be kept around, but I am not sure why this no longer happens. There is also a problem with C++ files if you change compilers which break ABI compability, but this would be a rather rare occurance for the vast majority of people.

Cheers,

Michael

comment:2 Changed 13 years ago by mabshoff

  • Milestone changed from sage-feature to sage-duplicate/invalid
  • Resolution set to duplicate
  • Status changed from new to closed

RobertWB opened #4238 with a patch, so I am closing this as a dupe.

Cheers,

Michael

Note: See TracTickets for help on using tickets.