Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove twisted.persisted.styles import #11716

Closed
saraedum opened this issue Aug 22, 2011 · 16 comments
Closed

Remove twisted.persisted.styles import #11716

saraedum opened this issue Aug 22, 2011 · 16 comments

Comments

@saraedum
Copy link
Member

The import of twisted.persisted.styles takes a significant amount of time on sage startup:

$ time ./sage -startuptime|grep twisted.persisted.styles:
 twisted.persisted.styles: 0.093 (sage.all)

real    0m1.422s

Most functionality from that module seems not to be used in sage. The attached patch removes everything but the needed functionality:

$ time ./sage -startuptime|grep twisted.persisted.styles:

real    0m1.280s

Apply only attachment: trac_11716_twisted_persisted_styles.proper.patch to the Sage library.

Component: performance

Keywords: sd32 start-up time startup

Author: Julian Rueth

Reviewer: Mike Hansen

Merged: sage-4.7.2.alpha3

Issue created by migration from https://trac.sagemath.org/ticket/11716

@mwhansen
Copy link
Contributor

comment:1

I like the idea of this, but I think that the methods should be moved into say "sage.misc.fpickle" instead of "sage.misc.cachefunc".

@mwhansen
Copy link
Contributor

Reviewer: Mike Hansen

@saraedum
Copy link
Member Author

@saraedum
Copy link
Member Author

comment:2

Good point. I was actually unsure where to put it. I fixed the patch accordingly. I'm waiting for the doctests to finish now.

@saraedum
Copy link
Member Author

comment:3

Passed the doctests against 4.7.2.alpha2.

@robertwb
Copy link
Contributor

comment:4

That one was at the top of my hit list too--I'm relieved it turned out to be so painless.

@jdemeyer
Copy link
Contributor

comment:5

saraedum: please add your real name as Author on this ticket. It would also be good to put yourself on http://trac.sagemath.org/sage_trac/#AccountNamesMappedtoRealNames.

@williamstein
Copy link
Contributor

Author: Julian Rueth

@williamstein
Copy link
Contributor

comment:7

I added saraedum's real name to the Author on the ticket at the wiki.

@williamstein
Copy link
Contributor

Changed keywords from none to sd32

@nexttime

This comment has been minimized.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 8, 2011

Changed keywords from sd32 to sd32 start-up time startup

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 17, 2011

Merged: sage-4.7.2.alpha3

@nexttime nexttime mannequin removed the s: positive review label Sep 17, 2011
@nexttime nexttime mannequin closed this as completed Sep 17, 2011
@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 28, 2011

"Proper" Mercurial changeset replacement patch.

@nexttime

This comment has been minimized.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 28, 2011

comment:11

Attachment: trac_11716_twisted_persisted_styles.proper.patch.gz

I've attached a *.proper.patch, which is identical except that I removed the "garbage" before "# HG changeset patch", i.e., I deleted the first line "exporting patch:", since Jeroen's current merger rejects such patches.

For now, please make sure all your patches start with "# HG changeset patch", i.e., have it on the first line without any preceding messages or whatever.

I've relaxed that in my version of the merger, but Jeroen and maybe others are likely to use his more restrictive one.

@nexttime nexttime mannequin changed the title remove twisted.persisted.styles import Remove twisted.persisted.styles import Sep 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants