Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
elcapitan
on Aug 22, 2017
|
parent
|
context
|
favorite
| on:
Why is this C++ code faster than my hand-written a...
tldr: compiler replaces /2 with a shift.
jandrese
on Aug 22, 2017
|
next
[–]
Which makes it sound like the author shouldn't have been trying to hand assemble for speed. Or maybe treat it as a learning exercise.
michaelt
on Aug 22, 2017
|
parent
|
next
[–]
Or maybe treat it as a learning exercise.
Is there any other reason to complete a Project Euler question?
empath75
on Aug 22, 2017
|
parent
|
prev
|
next
[–]
i think it
was
a learning exercise. It's not like there's any productive use for testing the collatz conjecture.
iplaw
on Aug 22, 2017
|
prev
[–]
Which is a common knowledge substitution that the OP overlooked.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: