Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zX41ZdbW
on July 25, 2022
|
parent
|
context
|
favorite
| on:
Performance comparison: counting words in Python, ...
I forgot to multiply the file 10 times. When I do, the result is 0.209 sec. which is still better than every other result.
stoical
on July 26, 2022
[–]
You are also using a language function to read the file. In the 'official' github implementations they have to accept the data line by line from stdin - stdin likely being slower than reading a file directly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: