News for hackers. Stuff that matters.
Re:Immortal Objects for Python by krossitalk on Wednesday August 16, 2023 @09:59AM (#37147114)
A ~2% slowdown in every python program everywhere sounds...unfortunate to say the least.
Re:Immortal Objects for Python by sheepscreek on Wednesday August 16, 2023 @10:06AM (#37147224)
I read that as a ~2% slowdown in reference counting, or garbage collection in general.
Re:Immortal Objects for Python by tgma on Wednesday August 16, 2023 @10:29AM (#37147608)
I strongly doubt that. Adding a check to a simple increment instruction is likely slowing it down by more than 2x not 2% so it must be some whole program performance benchmark that's slowed by 2%.
Re:Immortal Objects for Python by t-vi on Wednesday August 16, 2023 @12:58PM (#37149973)
The PEP says that a naïve implementation would cause a 4% performance hit and have a list of various ways of speeding up cases where immortality makes sense / is guaranteed that they say can bring this to parity. Maybe they implemented part of the list.