Large Scale Data Matching Improvement

Reduce Time Complexity By Using Binary-Search

Installation

    yarn

Origin

    node origin.js
  • IN: 13.508s
  • OUT: 12.653s

After Improvement

    node index.js
  • IN: 18.967ms
  • OUT: 15.11ms