Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload support #7

Merged
merged 18 commits into from
Nov 27, 2019
Merged

Hot reload support #7

merged 18 commits into from
Nov 27, 2019

Conversation

ktr0731
Copy link
Owner

@ktr0731 ktr0731 commented Aug 10, 2019

Implemented #5
If WithHotReload option is passed to Find or FindMulti, the finder automatically reloads the input slice when its length is changed.
For the aspect of performance and usability, Find and FindMulti don't enable hot reloading by default.

TODO

  • Optimize the call of matching.FindAll to pass a part of the slice. The performance got worse when the length of the slice was greater than about 30000 on my environment.

@codecov
Copy link

codecov bot commented Nov 24, 2019

Codecov Report

Merging #7 into master will decrease coverage by 2.01%.
The diff coverage is 95.91%.

@@            Coverage Diff            @@
##           master      #7      +/-   ##
=========================================
- Coverage   91.22%   89.2%   -2.02%     
=========================================
  Files           6       6              
  Lines         729     797      +68     
=========================================
+ Hits          665     711      +46     
- Misses         50      68      +18     
- Partials       14      18       +4

@ktr0731 ktr0731 force-pushed the hotreload branch 7 times, most recently from 85dee08 to 72b72ea Compare November 27, 2019 16:02
wait for goroutine scheduling
@ktr0731 ktr0731 marked this pull request as ready for review November 27, 2019 16:38
@ktr0731 ktr0731 self-assigned this Nov 27, 2019
@ktr0731 ktr0731 merged commit d856dca into master Nov 27, 2019
@ktr0731 ktr0731 deleted the hotreload branch November 27, 2019 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant