openapi3-parser icon indicating copy to clipboard operation
openapi3-parser copied to clipboard

Use slots in the dataclasses to optimize performance

Open manchenkoff opened this issue 2 years ago • 0 comments

Since dataclasses have only immutable structure and could not be extended with different fields, we should turn slots parameter on.

Example

from dataclasses import dataclasses

@dataclass(slots=True)
class Schema:
   ...

manchenkoff avatar Jul 06 '22 13:07 manchenkoff