3 ms·
The upside would be that you can specifically control when to pass values between the underlying C++ and the v8 runtime. But anyway, this implementation is qui
by tastroder 7y ago
The upside would be that you can specifically control when to pass values between the underlying C++ and the v8 runtime.
But anyway, this implementation is quite nice. I tried to recreate a more meaningful benchmark between a few of the libraries you compared with but on a real file system structure rrdir and node-walk just noped out by exceeding the maximum call stack size. Increasing that yielded pretty much the same results as your library for rrfind in the sync setting with the overhead likely being down to that one returning an object (mean difference between 50-100ms higher on ~1.1 million files).
- thecodrr 7y agoYou give a very valid reason to tryout an implementation in C++. I will definitely look into it. Thanks. Would love to see the benchmark results! Do share a link if you can. Thanks for auditing and taking the interest!