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

Performance-friendly JsonLexer #1635

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Conversation

qwwdfsad
Copy link
Collaborator

The performance of String-related code is now on-par with dev

private val reader: Reader,
private var _source: CharArray = CharArray(BATCH_SIZE)
) : JsonLexer(ArrayAsSequence(_source)) {
) : AbstractJsonLexer() {
private var threshold: Int = DEFAULT_THRESHOLD // chars

constructor(i: InputStream, charset: Charset) : this(i.reader(charset).buffered(READER_BUF_SIZE))
Copy link
Member

Choose a reason for hiding this comment

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

Btw, have you investigated READER_BUF_SIZE / BATCH_SIZE?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, only decoding part not relevant to the streams support

@qwwdfsad qwwdfsad merged commit 365ac9c into jvm-streams-integration Aug 17, 2021
@qwwdfsad qwwdfsad deleted the streams-perf branch August 17, 2021 15:12
sandwwraith pushed a commit that referenced this pull request Aug 23, 2021
* Performance-friendly JsonLexer
sandwwraith pushed a commit that referenced this pull request Sep 3, 2021
* Performance-friendly JsonLexer
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