ericvsmith / dataclasses

Apache License 2.0
587 stars 53 forks source link

When API is stable, compare performance of ast vs. exec #23

Open ericvsmith opened 7 years ago

ericvsmith commented 7 years ago

The tag last-version-with-ast points to a version of the code that uses ast to create functions. The current master branch uses exec.

hynek commented 7 years ago

JFTR, the reason why attrs went with exec is so it's possible to use pdb to step through our generated __init__.

ericvsmith commented 7 years ago

That's helpful, @hynek. Thanks for the insight.