Movatterモバイル変換


[0]ホーム

URL:


A couple garbage collector questions

Jeff Petkaujpet at eskimo.com
Sat Apr 21 03:32:46 EDT 2001


Daniel Berlin <dan at www.cgsoftware.com> wrote in messagenews: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?> --DanOn some modern processors, reference counting could actually befaster than no memory management at all--the incref basicallyacts as a prefetch, for suitably sized and aligned objects.Of course that's just random speculation, but isn't randomspeculation is what memory management arguments are all about?--Jeff


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp