Time taken by Immediate Methods #2386
Labels
kind: discussion
discussions, questions, requests for comments, and so on
status: awaiting response
Issues and PRs whose progress is stalled awaiting a response from (usually) the author
topic: performance
bugs or enhancements related to performance (improvements or regressions)
This is motivated by #2377:
When running the following example from the test suite
on my machine (just minimal packages, but AutPGroup is loaded), in the current master the calculation takes 234 seconds on my Laptop. If I restart GAP the same way, but issue the command
first, the calculation takes 200 seconds, that is close to 20% of the time is spent by immediate methods.
It is possible that this reflects bad programming of mine in the isomorphism test -- a lot of groups and vector spaces are created. However
TraceImmediateMethods
shows that time is spent on (e.g.) testing whether the group is cyclic and perfect because it has size 1, to check whether Size should be set to infinity, because IsFinite has been set tofalse
, and so on.The immediate methods themselves are probably rather harmless, but they change the type of an object (sometimes multiple tiles) just after it has been created, and the changed type then need to be compared with existing types to avoid duplication of types.
The text was updated successfully, but these errors were encountered: