From deb90f9b6f7cf9d2ba894323e7e35ecbdb74d2bf Mon Sep 17 00:00:00 2001 From: jimbo1qaz Date: Sun, 23 Dec 2018 22:07:00 -0800 Subject: [PATCH] Fix grammar error in docs (#477) "You should avoid $foo, in order to instantiate frozen slotted classes..." --- docs/how-does-it-work.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-does-it-work.rst b/docs/how-does-it-work.rst index f8dc04de..61423b00 100644 --- a/docs/how-does-it-work.rst +++ b/docs/how-does-it-work.rst @@ -95,6 +95,6 @@ Pick what's more important to you. Summary +++++++ -You should avoid to instantiate lots of frozen slotted classes (i.e. ``@attr.s(slots=True, frozen=True)``) in performance-critical code. +You should avoid instantiating lots of frozen slotted classes (i.e. ``@attr.s(slots=True, frozen=True)``) in performance-critical code. Frozen dict classes have barely a performance impact, unfrozen slotted classes are even *faster* than unfrozen dict classes (i.e. regular classes).