dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
533 stars 66 forks source link

Fix #272 by moving template code around #280

Closed skoppe closed 4 years ago

skoppe commented 4 years ago

A lot of template bloat was being generated by having map, filter and countUntil inside the 'and' and 'or' templates.

By simply moving them outside compilation speed and memory is back to normal again.

veelo commented 4 years ago

Thanks a lot! And, interesting find. Will need to store that knowledge somewhere for later use :-)

skoppe commented 4 years ago

https://github.com/PhilippeSigaud/Pegged/pull/282 for the unittest fix