Re: [sage-devel] Re: yet another sage-python performance puzzle

2017-09-18 Thread Nils Bruin
On Monday, September 18, 2017 at 3:08:11 AM UTC-7, Jeroen Demeyer wrote: > > On 2017-09-16 03:31, Nils Bruin wrote: > > So if you're finding you can't put a "from A import a" at the top-level > > and using it locally has noticeable cost (which can easily happen: > > imports have a significant co

Re: [sage-devel] Re: yet another sage-python performance puzzle

2017-09-18 Thread Jeroen Demeyer
On 2017-09-15 21:48, Travis Scrimshaw wrote: On Friday, September 15, 2017 at 2:31:05 PM UTC-5, Maarten Derickx wrote: Is it assymptotically 10% or is it 10% for the case in which you are testing it? In the first case I would be surprised in the second case it is not that weird.

Re: [sage-devel] Re: yet another sage-python performance puzzle

2017-09-18 Thread Jeroen Demeyer
On 2017-09-16 03:31, Nils Bruin wrote: So if you're finding you can't put a "from A import a" at the top-level and using it locally has noticeable cost (which can easily happen: imports have a significant cost, even for modules that are already present), then you could try to do a straight import