Replies: 1 comment 2 replies
-
Please let's not go down this path right now. It is not the time for it. At some point we need to reassess how definitions and bindings on symbols work and then that is the time for that. Too often we are digging down into low-level details while missing or not understanding the high-level problem and addressing that. We saw this with ordering the arrangement of tests in The other thing that is bothersome is that we can't come up with a plan and stick to it. Right now the focus was supposed to be on boxing and formatting. There is a lot to do there that remains in this area. So keep this in your back pocket for when the time is right. RIght now it is not the time. In the short term there will be a 5.0.1 release of mathics to address the packaging issue. What is in master will go in too, so the Asymptote error in RectangeBox which was broken between 4.x and 5.0.0 will get fixed. I may add some more smallish doc urls. |
Beta Was this translation helpful? Give feedback.
-
One idea I had some time ago by looking at other Python projects is to consider using
__slots__
to define the set of attributes of classes likeDefinitions
,BuiltinRule
orExpression
. It seems that this could help to save a lot of memory and also makes the access to these attributes a little bit faster (~5% - 10%).Here I started a branch implementing this change in
Definitions
andDefinition
. Comparing against master, it seems to be ~10% faster in building and accessing Definitions.Beta Was this translation helpful? Give feedback.
All reactions