top | item 37430699

When counting lines in Ruby randomly failed deployments

2 points| ilyazub | 2 years ago |serpapi.com

2 comments

order

ilyazub|2 years ago

tl;dr: str.count($\) was 1.5x faster compared to str.lines.count and didn't allocate additional memory.