Some more improvements for OFPModules#6061
Merged
HechtiDerLachs merged 8 commits intoJun 19, 2026
Merged
Conversation
This reverts commit d4cbfc6.
Collaborator
Author
|
Timings. On this branch: julia> R, (x, y) = QQ[:x, :y]
(Multivariate polynomial ring in 2 variables over QQ, QQMPolyRingElem[x, y])
julia> @time F = FreeMod(R, 100000)
0.000012 seconds (16 allocations: 736 bytes)
Free module of rank 100000 over R
julia> @time phi = hom(F, F, gens(F))
0.009471 seconds (800.02 k allocations: 40.436 MiB)
Module homomorphism
from F
to F
julia> @time compose(phi, phi)
0.032749 seconds (1.50 M allocations: 65.605 MiB)
Module homomorphism
from F
to FOn master: julia> R, (x, y) = QQ[:x, :y]
(Multivariate polynomial ring in 2 variables over QQ, QQMPolyRingElem[x, y])
julia> @time F = FreeMod(R, 100000)
0.221484 seconds (601.90 k allocations: 19.946 MiB, 67.16% gc time, 2.20% compilation time)
Free module of rank 100000 over R
julia> @time phi = hom(F, F, gens(F))
0.008930 seconds (800.04 k allocations: 40.438 MiB)
Module homomorphism
from F
to F
julia> @time compose(phi, phi)
0.268555 seconds (3.80 M allocations: 167.070 MiB, 59.42% gc time)
Module homomorphism
from F
to FIn the examples I have, this makes an actual difference. |
fingolfin
approved these changes
Jun 17, 2026
Contributor
|
As along as |
jankoboehm
approved these changes
Jun 19, 2026
jankoboehm
left a comment
Contributor
There was a problem hiding this comment.
What is the culprit for the failing test?
Member
some random segfault in the low-level julia IO code. I restarted the job |
Collaborator
Author
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This are some small things I encountered during my work on tuning direct images. I will add specific examples and timings.