3 ms·
>.(I usually write apis that are utilized by end user apis). When that is the case you need to think long and hard about performance, because it needs to not j
by jackmott 9y ago
>.(I usually write apis that are utilized by end user apis).
When that is the case you need to think long and hard about performance, because it needs to not just be fast enough for you, on your machine, but on any conceivable end users machine, for any conceivable end users idea of what responsive enough performance is, for any conceivable end uer's work load, which might be vastly different or larger than anything you intended.
further I don't think it is always the case that faster code is less simple. Often the faster option is more simple. Avoiding unnecessary complexity is often a win for performance too, and understanding memory locality and how the garbage collector work allows you to make smarter default choices which often have no net impact on simplicity