Skip to content

Conversation

@dcherednik
Copy link
Member

Changelog entry

Invoke TRope::Compact in OnVGetResult only when occupied memory exceeds threshold

Changelog category

Performance improvement
Description for reviewers

This change prevents unnecessary TRope::Compact call by invoking it only when the occupied memory exceeds a threshold. Current code inside of the if statement is redundant as it is applying the same logic as TRope::Compact.

Changelog entry

...

Changelog category

  • New feature
  • Experimental feature
  • Improvement
  • Performance improvement
  • User Interface
  • Bugfix
  • Backward incompatible change
  • Documentation (changelog entry is not required)
  • Not for changelog (changelog entry is not required)

Description for reviewers

...

…ds threshold (ydb-platform#22311)

Changelog entry

Invoke TRope::Compact in OnVGetResult only when occupied memory exceeds threshold

Changelog category

Performance improvement
Description for reviewers

This change prevents unnecessary TRope::Compact call by invoking it only when the occupied memory exceeds a threshold. Current code inside of the if statement is redundant as it is applying the same logic as TRope::Compact.
@github-actions
Copy link

github-actions bot commented Aug 25, 2025

2025-08-25 15:11:36 UTC Pre-commit check linux-x86_64-release-asan for 577a870 has started.
2025-08-25 15:11:50 UTC Artifacts will be uploaded here
2025-08-25 15:14:47 UTC ya make is running...
🟡 2025-08-25 16:35:02 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12703 12576 0 34 57 36

2025-08-25 16:36:19 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-08-25 17:05:49 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
173 (only retried tests) 79 0 9 53 32

2025-08-25 17:05:58 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-08-25 17:30:14 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?
122 (only retried tests) 38 0 9 43 32

🟢 2025-08-25 17:30:22 UTC Build successful.
🟢 2025-08-25 17:30:53 UTC ydbd size 3.7 GiB changed* by -11.6 KiB, which is <= 0 Bytes vs stream-nb-25-1: OK

ydbd size dash stream-nb-25-1: 7d26888 merge: 577a870 diff diff %
ydbd size 3 951 584 504 Bytes 3 951 572 632 Bytes -11.6 KiB -0.000%
ydbd stripped size 1 383 275 280 Bytes 1 383 273 936 Bytes -1.3 KiB -0.000%

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

@github-actions
Copy link

github-actions bot commented Aug 25, 2025

2025-08-25 15:13:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for 577a870 has started.
2025-08-25 15:13:53 UTC Artifacts will be uploaded here
2025-08-25 15:16:49 UTC ya make is running...
🟡 2025-08-25 16:27:47 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
19760 18471 0 10 1215 64

2025-08-25 16:29:46 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-08-25 16:51:17 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
143 (only retried tests) 76 0 2 7 58

2025-08-25 16:51:26 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-08-25 17:18:46 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
121 (only retried tests) 60 0 0 3 58

🟢 2025-08-25 17:18:53 UTC Build successful.
🟢 2025-08-25 17:19:17 UTC ydbd size 2.1 GiB changed* by -8.8 KiB, which is <= 0 Bytes vs stream-nb-25-1: OK

ydbd size dash stream-nb-25-1: 7d26888 merge: 577a870 diff diff %
ydbd size 2 270 609 840 Bytes 2 270 600 800 Bytes -8.8 KiB -0.000%
ydbd stripped size 480 025 624 Bytes 480 024 408 Bytes -1.2 KiB -0.000%

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

@dcherednik dcherednik merged commit e96c081 into ydb-platform:stream-nb-25-1 Aug 26, 2025
13 checks passed
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.

3 participants