Skip to content

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

Merged
gmmeyer merged 1 commit intoDataDog:masterfrom
grosser:grosser/freeze
May 24, 2018
Merged

reduce object allocation and make all strings frozen on ruby 2.3+#78
gmmeyer merged 1 commit intoDataDog:masterfrom
grosser:grosser/freeze

Conversation

@grosser
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

grosser commented May 18, 2018

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

@grosser
Copy link
Copy Markdown
Contributor Author

grosser commented May 19, 2018

ready for merge!

@gmmeyer gmmeyer merged commit f92dbf4 into DataDog:master May 24, 2018
@gmmeyer
Copy link
Copy Markdown
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