vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
982 stars 118 forks source link

Module-only statistics print #354

Open jodavies opened 4 years ago

jodavies commented 4 years ago

It would be very useful in larger programs to be able to enable the statistics locally for the current module. The beginning of the module could be inside an included file or a procedure, so being able to do something like

ModuleOption statistics;
.sort

would be excellent for this.

In principle it looks easy to add such a keyword, but I am not sure of a clean way to disable it again for the following module (if it was off to begin with).

Thanks, Josh.

vermaseren commented 4 years ago

Hi Josh,

It would involve an extra variable in one of the structs, probably AC. And in that case after each module it should reset the variable to its original value, whatever that value may be. In that case you can also add the various options of the statistics.

If you can think of more options, it would work the same way.

Jos

On 24 Jun 2020, at 14:02, jodavies notifications@github.com wrote:

It would be very useful in larger programs to be able to enable the statistics locally for the current module. The beginning of the module could be inside an included file or a procedure, so being able to do something like

ModuleOption statistics; .sort would be excellent for this.

In principle it looks easy to add such a keyword, but I am not sure of a clean way to disable it again for the following module (if it was off to begin with).

Thanks, Josh.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vermaseren/form/issues/354, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPCEVZCPTBD2D7XNCCKTLRYHTNZANCNFSM4OGS7LHA.