mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.08k stars 208 forks source link

Small tweaks #1571

Closed TiagoCavalcante closed 2 years ago

TiagoCavalcante commented 2 years ago

I don't know why the difference is so big, but...

image

rocky commented 2 years ago

I don't know why the difference is so big, but...

Well, we should start understanding why the differences is big. My hypothesis is that it is more about removing the "apply" methods and replacing them with "isinstance()" calls, than it is about replacing to_python() with .value.

That doesn't mean we shouldn't replace to_python(). It is more about understanding and focusing on where the bigger gains are.

![image](https://user-images.githubusercontent.com/62714153/132098740-c0aa2799-245b-4b67he -9462-f495e20da581.png)

TiagoCavalcante commented 2 years ago

All other changes keep the same performance.