durban / seals

Tools for schema evolution and language-integrated schemata
Apache License 2.0
65 stars 7 forks source link

Optimize models #85

Closed dilation closed 4 years ago

dilation commented 4 years ago

Creating a Model from a ModelRepr seems slow. Possible causes:

dilation commented 4 years ago

We should also take a look at the serialized size of models, whether they should be optimized somehow.

dilation commented 4 years ago

Decoding (form ModelRepr) performance is pathological (probably exponential) for big models involving somewhat long products (probably also sums).

dilation commented 4 years ago

87 improves the situation by optimizing ModelRepr#toModel. However issues seem to remain: see #88 for reducing the serialized size of models; and see #89 for further improving toModel performance.