Daniel Berlin <dan at www.cgsoftware.com> wrote in message news:mailman.987747988.15494.python-list at python.org... >... > Cache locality isn't hurt, why the heck would you decref an object you > hadn't just used? Why the heck would you incref an object you weren't > about to use? > > Branch prediction isn't an issue here, you'd have the same problem in any > garbage collection schemes. > > So where is the huge performance cost i'm paying? > --Dan On some modern processors, reference counting could actually be faster than no memory management at all--the incref basically acts as a prefetch, for suitably sized and aligned objects. Of course that's just random speculation, but isn't random speculation is what memory management arguments are all about? --Jeff
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4