Adding __slots__ to improve performance.
Đang mở
good first issue
- Ngôn ngữ chính
- Python
- Star
- 653
- Fork
- 217
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
We could probably significantly improve performance if we added `__slots__` to `HasTraits` and common `TraitType`. We'd just have to include `__dict__` as one of the slots to maintain backward compatibility.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by locating the HasTraits and common TraitType definitions in the repository and inspect how instances currently store attributes. Check the existing tests or benchmarks for these classes before assessing the compatibility impact. Done means the proposed slots preserve __dict__ behavior while demonstrating a measurable performance improvement.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- performance
- Loại issue
- Tái cấu trúc
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100