wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Optimization of domain array construction in structures #55

Closed riedelcastro closed 9 years ago

riedelcastro commented 10 years ago

Currently each structure maintains its own domain in array representation, and an inverse index from setting ids to values. Many structures will use the same domains though, so we should re-use these definitions. One way to do this without making the current code more complicated is to think of this as a post-processing step on the generated code that detects expressions that can be reused.