Ticket #11734 (closed defect: fixed)
sage_wraps should only read the sources of wrapped functions when needed.
|Reported by:||SimonKing||Owned by:||jason|
|Component:||misc||Keywords:||sage_wraps sources gentoo startuptime sd32|
|Report Upstream:||N/A||Reviewers:||Simon King|
|Authors:||Julian Rueth||Merged in:||sage-4.7.2.alpha3|
Description (last modified by leif) (diff)
According to private conversation with Francois Bissey, #9976 has introduced a problem that makes it impossible start sage-4.7.1 on Gentoo. That's pretty serious, and so this ticket is a blocker.
The problem is that sage_wraps reads the sources of to-be-wrapped functions and methods. The sources are stored as an attribute to the wrapper, which, on the one hand, is a waste of memory. Worse: Reading the Cython sources is impossible for sage-on-gentoo. Therefore, sage can't start.
My patch introduces some lightweight classes, that simply store a reference to an object (e.g., the to-be-wrapped function) and return the sources or source lines or the argument list only when called.
Apply only trac11734_sage_wraps_no_sourceread_lambda.proper.patch to the Sage library.
comment:13 Changed 21 months ago by SimonKing
- Reviewers set to Simon King
- Authors Simon King deleted
comment:23 Changed 20 months ago by leif
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-4.7.2.alpha3
Changed 20 months ago by leif
- attachment trac11734_sage_wraps_no_sourceread_lambda.proper.patch added