Live data from Hacker News

Fast Python loops

python.org

51–54 of 54 posts

Re: Fast Python loops

#51
post #39

I think this is the most idiomatic way of doing it in modern python: > "".join(chr(x) for x in list_of_ints) This article is really really really out of date

The article is about performant python, not idiomatic python.

Sure, but I have to say I felt very distracted by his not even mentioning the idiomatic approach.

Re: Fast Python loops

#52
post #48
post #47

In the time frame spent to test these hacks I would have written a perfect C module that runs circles around it.

Then realized it barfed on nulls, and started over with a more perfect implementation that took a bit longer.

Likely not, managed code tends to avoid nulls. They are problem in the return path though.

Re: Fast Python loops

#53
post #48
post #47

In the time frame spent to test these hacks I would have written a perfect C module that runs circles around it.

Then realized it barfed on nulls, and started over with a more perfect implementation that took a bit longer.

Likely not, managed code tends to avoid nulls. They are problem in the return path though.
Post reply on HN