Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ilyazub
on Sept 8, 2023
|
parent
|
context
|
favorite
| on:
When counting lines in Ruby randomly failed deploy...
tl;dr: str.count($\) was 1.5x faster compared to str.lines.count and didn't allocate additional memory.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: