- Joined
- Jan 17, 2025
i actually did some research because i thought this was interestign as well apparently __slots__ is a means of writing python code that's more memory efficient since python doesn't create a dict for it which is a means of adding class attributes during runtime. didnt know this was a thing and needless to say ill be implementing this from now on.stupid niggers wasting resources are a problem in every language, and performance is something you may need to trade off sometimes to have nice code
i believe most c++ programmers aren't using arenas, they just rely onmalloc
and its O(>>1) free lists every time they need some memory. also, they like using objects instead of laying everything out in SoA format for maximum cache speed. and there's nothing wrong with that! computers are pretty fast
would you please elaborate? this sounds interesting
Heres some more info i found: