Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add limit option to findTags #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hansonw
Copy link

@hansonw hansonw commented Feb 23, 2016

This adds an optional limit option to findTags which allows the user to specify the maximum number of results returned. This saves a lot of computation with large tag files.

Detailed semantics:

  • if limit is undefined or null, it is ignored (unlimited results)
  • otherwise, limit must be a positive integer, strictly enforced at runtime

@hansonw
Copy link
Author

hansonw commented Feb 25, 2016

ping - @zcbenz maybe? We're using this in Nuclide, and it's difficult to make it performant on large tags files without limiting the result set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants