dscape/p — Issue #1: Use deepEqual instead of JSON.stringify
Author: mhart
Created: 2012-02-22 04:30:22+00:00
State: open

Was just browsing through the code and thought that the `match` function (https://github.com/dscape/p/blob/master/pattern.js#L4) would be a lot more performant, especially for large objects, if you used `deepEqual` instead of converting to JSON strings.

There's an implementation here: https://github.com/substack/node-deep-equal

Mind you... I haven't tested it at all... Just call it a hunch :sparkles: