Deoptimisation can be a virtue [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Thu 2017-08-03 11:43
Deoptimisation can be a virtue
LinkReply
[personal profile] andrewduckerSat 2017-08-05 16:13
There's a third axis, which is "coding time". A simple algorithm might work fine, but to deal with scale/complexity/corner cases you need a more complex one which runs twice as fast, but takes twice as long to write. If the run-time of that section of code is a tiny proportion of the total run-time then why invest in speeding up that part?

Most of the time you can get around that by hiding complexity - have the merge-sort sit, super-optimised, behind a standard API and you don't have to worry about optimising your code.
Link Reply to this
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]