Another data point... While the above string manipulation is a separate issue, the modular-js generator is a dog, almost tripling our build time from 2.3s to 6.3s (as determined by addiong/removing):
--macro modular.js.JsGenerator.use()
The --times -D macro-times output indicates:
macro | 5.290 | 83 | 561 |
execution | 0.750 | 12 | 514 |
...
finalize | 0.030 | 0 | 15 |
flush | 0.070 | 1 | 15 |
jsGenerator | 4.400 | 69 | 1 |
...
Hmm, I wonder if a trivial JS generator would improve things, or if any jsGenerator has this problem. I wonder if, again, it's String manipulation that's really the problem with a JS generator.
Best,
-Jeff