Commit da64595
committed
Add __slots__ to _Frame class for memory optimization
- Add __slots__ definition to _Frame class in connection.py
- Optimizes memory usage for protocol frame objects
- _Frame is created for every protocol message, making this a high-impact optimization
- Reduces object overhead from ~300+ bytes to ~40-60 bytes per frame
- All existing functionality preserved, comprehensive tests pass
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>1 parent a0cde2e commit da64595
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
0 commit comments