curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
211 stars 30 forks source link

Investigate having external compiler host process, and forward compilation request to it #10

Closed theolivenbaum closed 4 years ago

theolivenbaum commented 4 years ago

This will enable us to avoid the costs of starting a new instance of the compiler for every step (avoiding the cost of jitting for example), and of loading assemblies in memory for Cecil, used here:

https://github.com/theolivenbaum/h5/blob/ba27f3936aa878d26f51e2cbdfe994b948bb363b/H5/Compiler/Translator/Emitter/Emitter.Properties.cs#L140

theolivenbaum commented 4 years ago

Initial experiments suggests we can easily achieve >60% reduction in compilation time from not having to reload assemblies.

theolivenbaum commented 4 years ago

Closed with https://github.com/theolivenbaum/h5/pull/13/commits