question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

string getitem methods are slow

See original GitHub issue

related #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:open
  • Created 10 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
brandon-rhodescommented, Feb 15, 2020

@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.

0reactions
3vtscommented, Feb 15, 2020

Is this still an ongoing effort? I would like to give it a try

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found