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

Added compiled glob matching using LRU cache #555

Closed
wants to merge 6 commits into from

Conversation

galen0624
Copy link
Collaborator

#554 Review for CPU usage of Mutex.

@galen0624 galen0624 changed the title Added compiled glob matching cache using LRU cache Added compiled glob matching using LRU cache Sep 24, 2018
@galen0624
Copy link
Collaborator Author

#554 The use of sync.Map increased the performance from 3500 TPS to 6500 TPS.
The glob_cache_test file needs refactoring as you have to use sync.Map.Range and there is no ability to get the len of a sync.Map currently

@galen0624
Copy link
Collaborator Author

#554 Updated glob_cache to support all types that implement the glob.Glob Interfaces. Make test now passes all checks.

@galen0624
Copy link
Collaborator Author

#554 Updated to remove type switch and assert type to glob.Glob interface.

@magiconair
Copy link
Contributor

This looks OK. If you rebase this then we can merge this as well. I assume you're using that in production as well?

@magiconair magiconair added this to the 1.5.11 milestone Nov 15, 2018
@galen0624
Copy link
Collaborator Author

We are not using this in prod. We don't use GLOB matching. That being said we have tested it. -- #554 (comment)

I will rebase line and PR.

@galen0624
Copy link
Collaborator Author

rebased this PR.

@galen0624
Copy link
Collaborator Author

Closing and recreating with new PR #615

@galen0624 galen0624 closed this Mar 8, 2019
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.

2 participants