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

Clean up #272

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Algebroids/gap/Algebroids.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1480,9 +1480,9 @@ end );

##
InstallOtherMethodForCompilerForCAP( MorphismInAlgebroid,
"for an algebroid, two objects in this algebroid and an element of the quiver algebra",
[ IsAlgebroid, IsObjectInAlgebroid, IsQuiverAlgebraElement, IsObjectInAlgebroid ],
"for an algebroid, two objects in this algebroid and an element of the quiver algebra",
[ IsAlgebroid, IsObjectInAlgebroid, IsQuiverAlgebraElement, IsObjectInAlgebroid ],

function( A, S, path, T )
local l;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gap> runtime_quiver := Runtime( ) - start;;
#
gap> if runtime >= runtime_quiver * 3 / 10 then Display( true ); else Display( runtime ); Display( runtime_quiver ); fi;
true
gap> if runtime <= runtime_quiver * 4 / 10 then Display( true ); else Display( runtime ); Display( runtime_quiver ); fi;
gap> if runtime <= runtime_quiver * 5 / 10 then Display( true ); else Display( runtime ); Display( runtime_quiver ); fi;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is needed, this means that the compiled code has gotten slower compared to the non-compiled code. Which commit is responsible for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can only reproduce this on my laptop, where the noncompiled code seems to be faster than in the CI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this always been the case, i.e. already when this test was introduced?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is new.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will wait for your answer before I merge.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you post runtime and runtime_quiver before and after the regression?

Copy link
Member Author

@mohamed-barakat mohamed-barakat Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without regression:

AdditiveClosureOfAlgebroid_vs_QuiverRows
msecs: 3367
gap> runtime;
647
gap> runtime_quiver;
1647
gap> Float( runtime_quiver * 4 / 10 );
658.8

With regression:

AdditiveClosureOfAlgebroid_vs_QuiverRows
msecs: 3316
gap> runtime;
666
gap> runtime_quiver;
1586
gap> Float( runtime_quiver * 4 / 10 );
634.4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my first numbers were wrong, now they are fixed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You see from the timings that with PR homalg-project/HigherHomologicalAlgebra#158 the runtime of QuiverRows is dropping.

true

#
Expand Down