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

replacing #gsub by #gsub! where possible #16

Merged
merged 1 commit into from
Jan 4, 2016
Merged

Conversation

maia
Copy link
Contributor

@maia maia commented Jan 4, 2016

By using #gsub! where possible the GC is reduced as pragmatic_segmenter won't create copies of strings where not needed. This fixes #14.

@diasks2
Copy link
Owner

diasks2 commented Jan 4, 2016

Thanks!

diasks2 added a commit that referenced this pull request Jan 4, 2016
replacing #gsub by #gsub! where possible
@diasks2 diasks2 merged commit ed8ebbc into diasks2:master Jan 4, 2016
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.

replace_abbreviation_as_sentence_boundary causing high GC
2 participants