Hacker News new | ask | show | jobs
by eyelidlessness 746 days ago
> I'd love examples where DRY can really hurt performance.

A really common example is overhead of polymorphism, although that overhead can vary a lot between stacks. Another is just the effect caused by the common complaint about premature abstraction: proliferation of options/special cases, which add overhead to every case even when they don’t apply.

1 comments

use compile time polymorphism

premature abstraction -> not understood dry (https://news.ycombinator.com/item?id=40525064#40525690)