fix(generator): improved generator performance

2-8x depending on project code size