Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
todddeluca
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
todddeluca
15y ago
Here are performance numbers for a variety of approaches using a list of length 256. You can see that having a local reference to the global chr function (as discussed in the article) can give a slight speed boost. Using join() in conjunc
2.
▲
by
todddeluca
15y ago
To avoid confusing newbies, str() does not concatenate a list (or generator, etc.) of strings into a single string. You probably meant to call ''.join() instead. >>> import itertools >>> def f2_1(list): ...