21
akshar
3y

Optimization trick.
The client shared this!

Comments
  • 0
    Even outside of this context, less lines of code !== more efficiency.
  • 0
    TFW client knows shit :D
  • 4
    Node devs would kill for this economy of scale
  • 0
    Do the 12 libs do a better job?
    Is that better worth the extra maintenance?

    Less code including deps != More optimal.

    Last year I did something similar and I think most would do the same (not one line of code but 20 or so). Replaced a custom logging class with a lib that actually adheres to the PHP PSR logging standard. One of the deps is the interface from that standards institution.
    As it logs async the performance actually increased
Add Comment