Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Fix UTF8Writer when used in same thread #80

Merged
merged 1 commit into from
Jan 9, 2017
Merged

Fix UTF8Writer when used in same thread #80

merged 1 commit into from
Jan 9, 2017

Conversation

tlrx
Copy link
Contributor

@tlrx tlrx commented Dec 19, 2016

Similar to #70, UTF8Writer should not reuse the recycled byte array when it is used in the same thread.

In the current state, I'm wondering if the usage of _bufferRecycler and _bufferHolder is a real performance gain. Would it make sense to just remove them (ie always get a new byte[DEFAULT_BUFFER_SIZE])?

Similar to #70, UTF8Writer should not reuse the byte array when it is used in the same thread.
@tlrx
Copy link
Contributor Author

tlrx commented Jan 9, 2017

@cowtowncoder Hi! Sorry to be insistent, but we'd be happy if you can have a look to this pull request when you have time :)

@cowtowncoder
Copy link
Member

@tlrx Thank you for the ping -- I just came back from 3 week vacation, hence the delay!

Will review this today.

@cowtowncoder cowtowncoder merged commit 16d3579 into FasterXML:master Jan 9, 2017
cowtowncoder added a commit that referenced this pull request Jan 10, 2017
@tlrx
Copy link
Contributor Author

tlrx commented Jan 10, 2017

@cowtowncoder Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants