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

term_count is slow #3

Open
faridani opened this issue Feb 6, 2012 · 0 comments
Open

term_count is slow #3

faridani opened this issue Feb 6, 2012 · 0 comments

Comments

@faridani
Copy link
Owner

faridani commented Feb 6, 2012

think about rewriting it with hashmaps

Right now we are using regex which is slow

Here is a simple solution:
put elements of the input string in a hash map (container map)
compare the contents of that container map with the keys of the header
if exists output the values

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

No branches or pull requests

1 participant