Skip to content

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

@sam-w

Description

@sam-w

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-majorissue best resolved in next major breaking change

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions