2 ms·
An underrated middle ground, at least when it comes to open source, is vendoring the dependency, cutting out the stuff you don't need, and adapting the API so t
by marginalia_nu 1y ago
An underrated middle ground, at least when it comes to open source, is vendoring the dependency, cutting out the stuff you don't need, and adapting the API so that it's not introducing more complexity than it has to.
This is also generally helpful when you have performance requirements, as often 3rd party code even when optimized in general, isn't very well optimized for any particular use case.
- vendiddy 1y agoI really like doing this. I find that in many cases you can cut out 80 percent of the code of the original library. Most of the deleted code is flexibility and features we don't need. It's surprising how small the essence of a solution can be.