leancodepl / contractsgenerator-dart

Dart contracts client generator for a CQRS API
3 stars 1 forks source link

Add verbose logging to cli #64

Closed shilangyu closed 2 years ago

shilangyu commented 2 years ago

Inspired by reading maestro code. Added some very basic logging.

I'm happy to report that generating dart code takes about 200ms on my machine (non AOT). Most of the time is spent on (in that order):

  1. generating json_serializable code
  2. interpreter/VM dart startup
  3. backend generator

By removing json_serializable generation, I might be able to enable AOT compilation. Which will effectively remove point 1 and 2.