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

PolyRatFun performance regression #178

Closed
tueda opened this issue Mar 30, 2017 · 5 comments
Closed

PolyRatFun performance regression #178

tueda opened this issue Mar 30, 2017 · 5 comments

Comments

@tueda
Copy link
Collaborator

tueda commented Mar 30, 2017

We have observed a considerable performance regression on PolyRatFun computations, introduced by ffabb37. For now, difficulty of fixing this regression is unclear.

@jodavies
Copy link
Collaborator

jodavies commented Apr 4, 2017

For me, the commits since 5634f18 break some code which uses polyratfun. I get

Division by zero during normalization

I am at a conference so do not have time to bisect the problem for a few days or to produce a minimal example, but I will get back to you...

Josh.

@vermaseren
Copy link
Owner

vermaseren commented Apr 5, 2017 via email

@jodavies
Copy link
Collaborator

jodavies commented Apr 5, 2017

OK, I managed to produce a minimal example which demonstrates the crash,

#-
Off Statistics;

Symbol a,b,c,ep;
CFunction redprf,epprf;

Local test1 =
       + epprf(-1, - 1 + ep)*redprf(1,1)
       + epprf(-1,1 - 3*ep + 2*ep^2)*redprf(-1,1)
      ;
.sort

PolyRatFun redprf;
Identify redprf(a?,b?) = redprf(a*c,b*c);
Identify epprf(a?,b?) = redprf(a,b);
.sort

Print +s;
.end

This works OK with 5634f18 but gives the division by zero error with 5b55fdb .

Interestingly, if I comment the .sort after the Identify statements, it prints

   test1 =
       + redprf( - 2 + 4*ep - 2*ep^2,0)
      ;

with the bad commit.

Thanks,
Josh.

EDIT: this is introduced by a0b635c

@vermaseren
Copy link
Owner

vermaseren commented Apr 5, 2017 via email

tueda added a commit that referenced this issue Apr 5, 2017
@tueda
Copy link
Collaborator Author

tueda commented Apr 22, 2017

Perhaps now we can turn off this performance regression alert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants