Skip to content

Conversation

goncalossilva
Copy link
Contributor

While checking the code to implement #124, I found a few things that could be optimized, namely:

  1. A couple of manual array copies
  2. Usage of StringBuffer where StringBuilder would suffice, or StringBuilder where String would suffice
  3. Redundant casts

While all of this is just polish, I think there's a lot to gain from the first point, fixed in 9580482.

Synchronization is not needed in this static context.
There are no advantages here, only disadvantages.
This approach is more efficient.
cowtowncoder added a commit that referenced this pull request Jan 25, 2014
@cowtowncoder cowtowncoder merged commit 0e791ab into FasterXML:master Jan 25, 2014
@cowtowncoder
Copy link
Member

Makes sense, thanks!

@goncalossilva
Copy link
Contributor Author

No problem, happy to help!

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.

2 participants