Skip to content

Bump version to 0.1.6 and optimize performance#9

Merged
bisho merged 1 commit into
mainfrom
03-10-optimizations_and_improvements
Mar 24, 2026
Merged

Bump version to 0.1.6 and optimize performance#9
bisho merged 1 commit into
mainfrom
03-10-optimizations_and_improvements

Conversation

@bisho
Copy link
Copy Markdown
Member

@bisho bisho commented Mar 11, 2026

Motivation / Description

This release optimizes performance and improves code quality through dependency updates, SIMD-accelerated string operations, and comprehensive test coverage.

Changes introduced

  • Bump version to 0.1.6 and update Cargo.lock format to version 4
  • Update dependencies: autocfg (1.4.0 → 1.5.0), cfg-if (1.0.0 → 1.0.4), indoc (2.0.5 → 2.0.7), libc (0.2.164 → 0.2.183), once_cell (1.20.2 → 1.21.3), portable-atomic (1.10.0 → 1.13.1), proc-macro2 (1.0.92 → 1.0.106), pyo3 suite (0.23.1 → 0.23.5), quote (1.0.37 → 1.0.45), syn (2.0.89 → 2.0.117), unicode-ident (1.0.14 → 1.0.24), unindent (0.2.3 → 0.2.4)
  • Add itoa and memchr dependencies for optimized integer-to-string conversion and SIMD-accelerated memory operations
  • Replace manual \r\n search loop with memchr's SIMD-accelerated memmem::find in header parsing
  • Replace .to_string() calls with itoa::Buffer for faster integer serialization
  • Optimize binary key detection using iterator any() method instead of manual loop
  • Add empty key validation to reject zero-length keys
  • Implement Clone and PartialEq derives for RequestFlags and ResponseFlags structs
  • Simplify equality comparison methods using derived PartialEq implementation
  • Pre-allocate Vec capacity in RequestFlags::to_bytes for better memory efficiency
  • Add comprehensive test suites for RequestFlags and ResponseFlags with 100+ test cases covering edge cases, boundary conditions, and flag combinations
  • Fix numeric literal type annotation from 65 as u8 to b'A' for better readability

@bisho bisho changed the base branch from main to graphite-base/9 March 16, 2026 16:09
@bisho bisho force-pushed the 03-10-optimizations_and_improvements branch from 050ec63 to 53a7da0 Compare March 16, 2026 16:09
@bisho bisho changed the base branch from graphite-base/9 to 03-10-upgrade_to_pyo3_0.28.2 March 16, 2026 16:09
This was referenced Mar 17, 2026
Copy link
Copy Markdown
Member Author

bisho commented Mar 24, 2026

Merge activity

  • Mar 24, 4:58 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 24, 4:59 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 24, 5:01 PM UTC: @bisho merged this pull request with Graphite.

@bisho bisho changed the base branch from 03-10-upgrade_to_pyo3_0.28.2 to graphite-base/9 March 24, 2026 16:58
@bisho bisho changed the base branch from graphite-base/9 to main March 24, 2026 16:58
@bisho bisho force-pushed the 03-10-optimizations_and_improvements branch from 53a7da0 to b31f8ee Compare March 24, 2026 16:59
@bisho bisho merged commit cdb619b into main Mar 24, 2026
15 of 16 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.

2 participants