template-archive icon indicating copy to clipboard operation
template-archive copied to clipboard

Optimize size of web packed modules

Open dselman opened this issue 6 years ago • 3 comments

image (19)

dselman avatar Apr 04 '19 13:04 dselman

ietf-language-tag-regex should be quite easy to eliminate I think.

The Ergo compiler is over 1 MB. We should think about splitting the parser (used in hub) from the Ergo compiler.

dselman avatar Apr 04 '19 13:04 dselman

I agree. We should provide different packages or Web bundles for parsing and compiling.

jeromesimeon avatar Apr 04 '19 13:04 jeromesimeon

The new distinction between source and compiled templates should help very much. The compiler should go from a source template to a compiled template. The compiled template can be handed over to the engine. Either source or compiled template can be used for parsing. The step in between (compilation) can be isolated.

jeromesimeon avatar Apr 04 '19 13:04 jeromesimeon