Skip to content

Use builderWithExpectedSize when size is known#12376

Merged
sopel39 merged 1 commit intotrinodb:masterfrom
wendigo:serafin/minor-improvement
May 16, 2022
Merged

Use builderWithExpectedSize when size is known#12376
sopel39 merged 1 commit intotrinodb:masterfrom
wendigo:serafin/minor-improvement

Conversation

@wendigo
Copy link
Copy Markdown
Contributor

@wendigo wendigo commented May 13, 2022

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

How would you describe this change to a non-technical end user or system administrator?

Related issues, pull requests, and links

Documentation

( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label May 13, 2022
@wendigo wendigo requested a review from hashhar May 13, 2022 11:49
@hashhar
Copy link
Copy Markdown
Member

hashhar commented May 16, 2022

Most of this is in engine, so cc: @sopel39 .

It looks good to me however.

@hashhar hashhar requested a review from sopel39 May 16, 2022 05:51
Copy link
Copy Markdown
Member

@sopel39 sopel39 left a comment

Choose a reason for hiding this comment

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

I'm not sure it matters for perf though

@sopel39
Copy link
Copy Markdown
Member

sopel39 commented May 16, 2022

mind automation

@wendigo
Copy link
Copy Markdown
Contributor Author

wendigo commented May 16, 2022

@sopel39 according to javadoc builderWithExpectedSize is faster

@wendigo
Copy link
Copy Markdown
Contributor Author

wendigo commented May 16, 2022

CI hit: #12413

@wendigo wendigo force-pushed the serafin/minor-improvement branch from 2254061 to a548d13 Compare May 16, 2022 11:18
@wendigo wendigo force-pushed the serafin/minor-improvement branch from a548d13 to e9f3d2d Compare May 16, 2022 11:26
@sopel39
Copy link
Copy Markdown
Member

sopel39 commented May 16, 2022

@sopel39 according to javadoc builderWithExpectedSize is faster

it is, but places where it's used might be irrelevant.

@sopel39
Copy link
Copy Markdown
Member

sopel39 commented May 16, 2022

anyway, I think it's fine to land

@sopel39
Copy link
Copy Markdown
Member

sopel39 commented May 16, 2022

@wendigo ping me when tests pass

@wendigo
Copy link
Copy Markdown
Contributor Author

wendigo commented May 16, 2022

@sopel39 ping

@sopel39 sopel39 merged commit 0f71007 into trinodb:master May 16, 2022
@wendigo wendigo deleted the serafin/minor-improvement branch May 16, 2022 14:04
@github-actions github-actions bot added this to the 381 milestone May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants