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

optimize objects initialization #16810

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

ivanmorozov333
Copy link
Collaborator

  • Performance improvement

Copy link

github-actions bot commented Apr 5, 2025

2025-04-05 13:01:51 UTC Pre-commit check linux-x86_64-relwithdebinfo for 575df3b has started.
2025-04-05 13:01:55 UTC Artifacts will be uploaded here
2025-04-05 13:04:37 UTC ya make is running...
🟢 2025-04-05 14:00:05 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
19807 18449 0 0 1249 109

🟢 2025-04-05 14:01:41 UTC Build successful.
🟡 2025-04-05 14:01:56 UTC ydbd size 2.2 GiB changed* by +362.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 91d556c merge: 575df3b diff diff %
ydbd size 2 354 449 752 Bytes 2 354 821 000 Bytes +362.5 KiB +0.016%
ydbd stripped size 492 035 936 Bytes 492 077 664 Bytes +40.8 KiB +0.008%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Apr 5, 2025

2025-04-05 13:01:51 UTC Pre-commit check linux-x86_64-release-asan for 575df3b has started.
2025-04-05 13:02:14 UTC Artifacts will be uploaded here
2025-04-05 13:05:00 UTC ya make is running...
🟡 2025-04-05 14:29:30 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12334 12180 0 95 23 36

2025-04-05 14:30:36 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-05 14:43:15 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
205 (only retried tests) 129 0 36 9 31

2025-04-05 14:43:27 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-05 14:55:25 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
104 (only retried tests) 38 0 33 2 31

🟢 2025-04-05 14:55:32 UTC Build successful.
🟡 2025-04-05 14:56:00 UTC ydbd size 3.8 GiB changed* by +529.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 91d556c merge: 575df3b diff diff %
ydbd size 4 131 662 840 Bytes 4 132 204 600 Bytes +529.1 KiB +0.013%
ydbd stripped size 1 427 167 912 Bytes 1 427 295 464 Bytes +124.6 KiB +0.009%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Apr 5, 2025

🟢 2025-04-05 13:02:33 UTC The validation of the Pull Request description is successful.

TStatusValidator::Validate(builder->AppendNull());
return NArrow::FinishBuilder(std::move(builder));
std::shared_ptr<arrow::Array> result;
NArrow::SwitchType(typePtr->id(), [&](const auto& /*type*/) {
Copy link
Collaborator

@swalrus1 swalrus1 Apr 5, 2025

Choose a reason for hiding this comment

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

А зачем здесь вызывается идентичный код, как и раньше, но через SwitchType? Это влияет на перформанс?

Я вижу только что некоторые типы в typePtr->id() приведут к падению верифайки.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

код не идентичен. verify на типах, которые не используются

@ivanmorozov333 ivanmorozov333 marked this pull request as ready for review April 6, 2025 04:44
@ivanmorozov333 ivanmorozov333 requested a review from a team as a code owner April 6, 2025 04:44
@ivanmorozov333 ivanmorozov333 merged commit 82aa456 into ydb-platform:main Apr 7, 2025
18 checks passed
@ivanmorozov333 ivanmorozov333 deleted the optimizations branch April 7, 2025 08:13
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.

2 participants