Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectn seems to be faster than json-path for path parsing #210

Open
sam-w opened this issue May 21, 2020 · 0 comments
Open

selectn seems to be faster than json-path for path parsing #210

sam-w opened this issue May 21, 2020 · 0 comments

Comments

@sam-w
Copy link

@sam-w sam-w commented May 21, 2020

I upgraded from 3.x to 5.x and initially took the easy way out of npm install selectn, as suggested, for path parsing. More recently, I got around to looking into using json-path instead, and noticed that it takes between 1.2 and 3x as long, depending on the number of evaluations being performed!

Is this expected? Is there any drawback to sticking with selectn? Happy to provide exact rules and code if required.

v5.0.3
Node.js 12.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.