G3Kappa / Ergo

Other
4 stars 0 forks source link

Optimize substitution maps for variables that are only used once #53

Closed G3Kappa closed 1 year ago

G3Kappa commented 1 year ago

Some queries that should run in constant space are creating GBs of unnecessary substitutions.

A simple example is: for(I, 0, 100000) which will probably crash the system with an OOM error before terminating.

My intuition is that these are generating "useless" substitutions that should be removed "as we go" instead of doing all the heavy lifting at the end.