Y
Hacker News
new
|
ask
|
show
|
jobs
by
measurablefunc
155 days ago
The task is ill-defined.
1 comments
saagarjha
155 days ago
You make it faster
link
measurablefunc
155 days ago
Fewer instructions doesn't mean it's faster. It can be faster but it's not guaranteed in general. Obvious counterexample is single threaded vs multi-threaded code. Single threaded code will have fewer instructions but won't necessarily be faster.
link
saagarjha
155 days ago
It does in this case; you can read the assignment to see that it is all single-threaded
link
measurablefunc
154 days ago
I read it, you're mistaken.
link
saagarjha
154 days ago
I did the assignment my guy
link
measurablefunc
154 days ago
That's great but I didn't ask & that's still not addressing my point.
link