string getitem methods are slow
See original GitHub issuerelated #2802
It seems that str[1] is significantly slower than .apply(lambda x: x[1])
See this So answer http://stackoverflow.com/a/18473330/1240268
Issue Analytics
- State:
- Created 10 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
python - Why are __getitem__(key) and get(key) significantly ...
I doubt it changes much about the result, though the slowdown may be less severe. Edit @Not_a_Golfer: All three methods should be C...
Read more >How fast is vanilla JS localStorage? - Go Make Things
Based on my tests, you can turn 100,000 items into a string, save it, get back out of storage, and convert it back...
Read more >Enhancing performance — pandas 1.5.2 documentation
This tutorial walks through a “typical” process of cythonizing a slow computation. We use an example from the Cython documentation but in the...
Read more >Best practices for querying and scanning data
Sequential Scan operations are too slow. Choosing TotalSegments. The best setting for TotalSegments depends on your specific data, the table's provisioned ...
Read more >Converting a PySpark Map / Dictionary to Multiple Columns
This operation can be slow, so performant work-arounds are discussed. ... The getItem method helps when fetching values from PySpark maps.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@3vts Feel free to give it a try! I did not wind up with time to make progress on it, and my guess is that the project I was on that needed the extra performance found a workaround. To be honest, I had, alas, forgotten all about it in the intervening years.
Is this still an ongoing effort? I would like to give it a try