# Improving dataclasses startup performance

**URL:** <https://discuss.python.org/t/improving-dataclasses-startup-performance/15442>\
**Category:** Committers\
**Created:** [May 2, 2022, 11:16pm UTC](https://discuss.python.org/t/improving-dataclasses-startup-performance/15442 "2022-05-02T23:16:56Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![stoneleaf](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/stoneleaf/32/88_2.png) [@stoneleaf](https://discuss.python.org/u/stoneleaf)\
**Post date:** [May 3, 2022, 3:32pm UTC](https://discuss.python.org/t/improving-dataclasses-startup-performance/15442/11 "2022-05-03T15:32:15Z")

</div>

> [@ericvsmith](#):
>
> And really the whole thing needs to be benchmarked first. Is it the fact that it imports and uses `re` or `inspect` or something else that’s the issue?

If it imports `re` then it also imports `enum`, which is still written in Python and known to have a slow startup time.

---

_[View the full topic](https://discuss.python.org/t/improving-dataclasses-startup-performance/15442)._
