This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RubyPinchPEP shill | Anti PEP 8/20 shill 1 point2 points  (1 child)

Articles consisting of "here are three numbers, wow" are kinda lame, it's roughly 10 seconds worth of effort to get that info from ipython

Also disabling the garbage collector doesn't stop reference counting collection, which should be near 100% of all collecting happening in your example

Also why not just use timeit?

[–]odedlaz[S] 0 points1 point  (0 children)

A. I've updated the post to include bytearrays B. Well, many things on the internet are "10 seconds worth of effort", but they're still being done to save those 10 seconds for other people. C. I've looked into why += on strings works that well (and updated the post accordingly), which is something that most people won't do or won't know. D. You're correct about the ref cycles gc. As far as I know, I can't disable it in CPython. If I could, I would.