Mathics3 / mathics-core

An open-source Mathematica. This repository contains the Python modules for WL Built-in functions, variables, core primitives, e.g. Symbol, a parser to create Expressions, and an evaluator to execute them.
https://mathics.org
Other
786 stars 48 forks source link

Speed up list processing #1129

Closed rocky closed 1 month ago

rocky commented 1 month ago

Remove unnecessary evaluations for literal List evaluations.

mmatera commented 1 month ago

@rocky, tell me when this is ready.

rocky commented 1 month ago

@rocky, tell me when this is ready.

It is ready. There will probably be more. But I like small easier-to-follow commits.

I think there is a way for to_python() to pick up (Python) literal values instead of going through the entire list converting them.