Last active
August 29, 2015 14:11
-
-
Save hbi99/48dce9b9e55f9e466f9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data { | |
// ...large JSON structure... | |
}; | |
// Regular search | |
found = JSON.search(data, '//item'); | |
var snapshot = Defiant.getSnapshot(data); | |
// Snapshot search - this is more than 100 times faster than 'regular search' | |
found = JSON.search(snapshot, '//item'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment