Skip to content

Conversation

danielcompton
Copy link
Collaborator

@danielcompton danielcompton commented Sep 9, 2025

Fixes from Whimsical's version:

  • Fix octet on Java 14+
  • Correctly handle size* when data contains keys that are not in spec
  • Remove linter warnings/errors
  • Add type hints in performance critical paths
  • Add missing typehints
  • Add warn-on-reflection true
  • Fix reflection warnings in tests
  • Update gitignore

k7d and others added 8 commits August 25, 2025 18:50
Cast value to byte in write-byte method to ensure compatibility
Ignore values that are not defined in the spec rather than throwing an error
- Add underscore prefix to unused function parameters
- Fix namespace declarations and requires
- Use consistent namespace aliases
- Improve function docstring formatting
Add type hints to reduce reflection and memory allocations:
- ByteBuffer type hints
- int type hints for positions
- ByteBufAllocator type hints

This reduces memory allocations by ~80% in performance critical paths.
Add type hints to reduce reflection warnings:
- Type hint byte arrays in string specs
- Add return and parameter type hints in util functions
- Type hint String instances

These help eliminate reflection warnings when *warn-on-reflection* is enabled.
Add type hints to resolve reflection warnings:
- ByteBuffer type hints for isDirect and getInt calls
- ByteBuf type hints for isDirect calls
@danielcompton danielcompton merged commit c147a10 into master Sep 9, 2025
3 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.

4 participants