3 ms·
At my workplace, we have a node.js service that solves Vehicle Routing Problems, which are very computationally intensive. When we profiled it, it was spending
by yashap 5y ago
At my workplace, we have a node.js service that solves Vehicle Routing Problems, which are very computationally intensive. When we profiled it, it was spending ~30% of its time on moment.js - mostly constructing lots of moment objects just to do simple things like get UTC-now. We replaced it with native node APIs and got an ~30% speedup.
So yeah, +1 on "be careful about using moment.js in performance sensitive/critical code".