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

reduce object allocation and make all strings frozen on ruby 2.3+ #78

Merged
merged 1 commit into from
May 24, 2018

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Feb 3, 2018

this is slightly more dangerous on ruby 2.3+ since it makes all internal strings frozen ... and they might blow up in untested edge-cases, so maybe get 3.3 out and leave it for 3.4 ...

as a bonus feature this also makes sure we never modify options hash that is passed in

@masci

Failing test will look like this:
screen shot 2018-02-03 at 3 19 48 pm

@grosser grosser force-pushed the grosser/freeze branch 2 times, most recently from 0903d3f to 855f492 Compare February 3, 2018 23:40
@masci masci added this to the 4.0.0 milestone Feb 4, 2018
Copy link
Contributor

@gmmeyer gmmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grosser can you fix the gemfile conflict? I'm pretty happy with this and can merge and we can release the next version :)

@grosser
Copy link
Contributor Author

grosser commented May 18, 2018

need the coverage PR merged too or this will be a red build

@grosser
Copy link
Contributor Author

grosser commented May 19, 2018

ready for merge!

@gmmeyer gmmeyer merged commit f92dbf4 into DataDog:master May 24, 2018
@gmmeyer
Copy link
Contributor

gmmeyer commented May 24, 2018

@grosser go ahead and rebase!

@grosser grosser deleted the grosser/freeze branch May 24, 2018 17:10
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.

3 participants