diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b67c1726..865dd910 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -30,6 +30,7 @@ Changes: `#35 `_ - ``attr.asdict`` can now produce arbitrary mappings instead of Python ``dict``s when provided with a ``dict_factory`` argument. `#40 `_ +- Multiple performance improvements. ---- diff --git a/src/attr/_make.py b/src/attr/_make.py index bf352f5c..55e7fbc0 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -421,7 +421,8 @@ def fields(cl): def _fast_attrs_iterate(inst): - """ Fast internal iteration over the attr descriptors. + """ + Fast internal iteration over the attr descriptors. Using fields to iterate is slow because it involves deepcopy. """