This sounds like pre-mature optimization. If the library does what you need it to do, use it. If it becomes a problem later, then optimize it. That last thing you want to do is spend a bunch of time reimplementing code when: 1) It may not matter at all, 2) You might miss important edge cases, or 3) You got everything right but you still have to maintain it forever. If it's going to take you three days to integrate th…
In this way I had little investment in the beginning. And once I knew what I needed, it was another small investment to clean the code.