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

[core] improve TDirectory::DecodeNameCycle #18244

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

silverweed
Copy link
Contributor

  • avoid scanning the string twice
  • allow name to be null if one only wants the cycle
  • return the actual name length so the caller can know whether the name was truncated or not
  • improve function documentation

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

@silverweed silverweed self-assigned this Apr 3, 2025
@silverweed silverweed requested review from hahnjo and hageboeck April 3, 2025 12:24
Copy link
Member

@hageboeck hageboeck left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

github-actions bot commented Apr 3, 2025

Test Results

    19 files      19 suites   4d 21h 32m 6s ⏱️
 2 717 tests  2 712 ✅ 0 💤 5 ❌
49 832 runs  49 827 ✅ 0 💤 5 ❌

For more details on these failures, see this check.

Results for commit 24deac7.

♻️ This comment has been updated with latest results.

Copy link
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

Thanks.

- avoid scanning the string twice
- allow `name` to be null if one only wants the cycle
- return the actual name length so the caller can know whether the name
  was truncated or not
- improve function documentation
@silverweed silverweed force-pushed the tdir_decodenamecycle branch from c307939 to 24deac7 Compare April 4, 2025 06:39
@dpiparo dpiparo merged commit 0c72aea into root-project:master Apr 5, 2025
34 of 43 checks passed
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.

4 participants