LouisLou2 opened a new pull request, #2179:
URL: https://github.com/apache/fury/pull/2179

   <!--
   **Thanks for contributing to Fury.**
   
   **If this is your first time opening a PR on fury, you can refer to 
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).**
   
   Contribution Checklist
   
       - The **Apache Fury (incubating)** community has restrictions on the 
naming of PR titles. You can also find instructions in 
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).
   
       - Fury has a strong focus on performance. If the PR you submit will have 
an impact on performance, please benchmark it first and provide the benchmark 
result here.
   -->
   
   ## What does this PR do?
   
   This PR fixes the inconsistent behavior of `readVarUint36Small()` when 
reading from buffers of different remaining sizes.  
   - Aligns the fast path and slow path so both read the full 36 bits.  
   - Updates the bit‐extraction in the slow path (`readVarUint36Slow()`) to 
match the fast path’s handling of the high‐order bits.  
   
   ## Related issues
   
   - #2110
   
   ## Does this PR introduce any user‐facing change?
   
   No user‐facing changes are introduced.  
   - [ ] Does this PR introduce any public API change?  
   - [ ] Does this PR introduce any binary protocol compatibility change?  
   
   ## Benchmark
   
   No measurable performance impact is expected, as the fix only adjusts bit 
extraction logic without altering code paths.  
   Benchmark


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to