Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zerr
on Aug 24, 2023
|
parent
|
context
|
favorite
| on:
Print(“lol”) doubled the speed of my Go function
No explanation whatsoever. Why the branch predictor is not "invoked" in the first version of the function?
MauranKilom
on Aug 24, 2023
[–]
Because it's most likely using a conditional move.
distcs
on Aug 24, 2023
|
parent
[–]
But I don't see the post going into investigating this at all. Yes, most likely that is what is going on but I don't understand the point of the OP post is if the real reason of the difference in the branch predictor behavior is not explained.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: