Skip to content

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented Aug 20, 2024

This PR switches the encoder to the BlockingDirectBinaryEncoder that actually encodes the size of list and map objects in the Avro file.

When doing projected reads, it can skip of the fields that are not relevant, without having to skip over each of the element or entry.

The ManifestWriteBenchmark shows a slight decrease in write speed:

Before: 22.51099815 s/op with 0.1981214357719109 error
After: 22.2674114166 s/op with 0.47593907631201676 error

cc @rustyconover @aokolnychyi

This PR switches the encoder to the `BlockingDirectBinaryEncoder`
that actually encodes the size of list and map objects in the Avro
file.

When doing projected reads, it can skip of the fields that are not
relevant, without having to skip over each of the element or entry.

The `ManifestWriteBenchmark` shows a slight decrease in write speed:

```
Before: 22.51099815 s/op with 0.1981214357719109 error
After: 22.2674114166 s/op with 0.47593907631201676 error
```
@github-actions github-actions bot added the core label Aug 20, 2024
@rustyconover
Copy link
Contributor

Cool! I'm glad to see this coming along.

writer.setMeta(entry.getKey(), entry.getValue());
}

writer.setEncoder(b -> EncoderFactory.get().blockingDirectBinaryEncoder(b, null));
Copy link
Contributor

@namrathamyske namrathamyske Oct 30, 2024

Choose a reason for hiding this comment

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

Should we also do it here:

BinaryEncoder encoder = EncoderFactory.get().directBinaryEncoder(stream, ENCODER.get());
and
BinaryEncoder encoder = EncoderFactory.get().binaryEncoder(out, null);

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 30, 2024
@rustyconover
Copy link
Contributor

This still seems to be pending.

@Fokko Fokko removed the stale label Dec 1, 2024
@Fokko Fokko requested a review from aokolnychyi December 1, 2024 18:31
@github-actions
Copy link

github-actions bot commented Jan 1, 2025

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 1, 2025
@rustyconover
Copy link
Contributor

Seems like its still pending.

@github-actions github-actions bot removed the stale label Jan 2, 2025
@github-actions
Copy link

github-actions bot commented Feb 1, 2025

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 1, 2025
@danielcweeks danielcweeks self-requested a review February 3, 2025 16:56
@github-actions github-actions bot removed the stale label Feb 4, 2025
@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 13, 2025
@github-actions
Copy link

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants