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
Don't use is_package_installed('bliss') #21289
Comments
comment:1
Can you check canonical label for plain graphs? Are you sure that you don't have Bliss installed in 6.9 but not in 7.4? |
comment:2
(no, i haven't installed bliss in either version) The problem is actually elsewhere:
In 7.4, all the time is eaten by
I think that |
comment:3
Replying to @mantepse:
Is the problem
True. I can add it, but let's first check what is wrong here. |
comment:4
I think I got it. It does
and this is clearly too much for every function call. |
comment:5
Jeroen is propably interested in this. |
Reviewer: Martin Rubey |
comment:9
Replying to @mantepse:
Don't do that. Use the Easier to ask for forgiveness than permission principle: assume that Bliss is installed and fail gracefully if not. |
comment:10
So all of these (except the ones in
|
comment:11
Why can't Sage just check installed packages on startup and make a list to some global variable? |
comment:13
Some are possibly OK, for example in However, that's not quite true either: if I'm going to catch an error, I possibly rely on it being thrown quickly... |
comment:14
Replying to @mantepse:
At least the ones which involve an |
comment:16
Replying to @jdemeyer:
I do not understand this answer. Compiling the list once does not take very long. The problem occurs only because sage is doing it over and over again. |
comment:17
I do think however that we want to be able to pick up new packages without having to leave sage, don't we? |
comment:18
Replying to @mantepse:
Compiling the list once takes an extremely long time (almost 2 seconds on my machine). |
comment:19
Replying to @mantepse:
I don't think that it is an important feature. Would be nice, yes, but a minor issue. |
Branch: u/chapoton/21289 |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:33
Could you replace
by
This will give a customized error message. |
Author: Frédéric Chapoton |
Changed reviewer from Martin Rubey to Jeroen Demeyer |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:35
done |
comment:36
ping ? |
comment:37
This looks good, but it just needs testing that it works both without and with bliss. |
comment:38
Let's wait for the patchbot... |
comment:39
ok, bot is green. Jeroen ? |
comment:40
I'll test it now on my computer with bliss installed. |
comment:41
Given that this code is very close to the stuff I do in sage-on-gentoo with that file - may be Jeroen has been inspired by something he saw a while back :P - I would put this positive. But since Jeroen wants to try it, I'll let him push the button. |
Changed reviewer from Jeroen Demeyer to François Bissey, Jeroen Demeyer |
Changed branch from u/chapoton/21289 to |
In 6.9.beta5 I have:
whereas in 7.4.beta1
CC: @jm58660 @fchapoton @jdemeyer @mkoeppe @tscrim
Component: graph theory
Author: Frédéric Chapoton
Branch/Commit:
253517d
Reviewer: François Bissey, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/21289
The text was updated successfully, but these errors were encountered: