Skip to content

Accelerate bandwidth parser ASCII scanning - #1931

Merged
oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync
Nov 4, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 4, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • reuse memchr to locate exponent and decimal separators in the bandwidth parser for SIMD-backed scanning
  • add the new dependency and document the memchr fast path in internal docs

Testing

  • cargo test -p rsync-bandwidth

@oferchen
oferchen merged commit a823270 into master Nov 4, 2025
@oferchen
oferchen deleted the implement-missing-components-for-oc-rsync branch November 4, 2025 07:37
oferchen added a commit that referenced this pull request May 7, 2026
Specifies regression coverage for IocpDiskBatch::submit_write_batch
short-completion handling, with a small-ring-buffer harness, a
deterministic completion injector, and a memory-pressure scenario
that bounds queue depth and verifies byte-for-byte fidelity.
oferchen added a commit that referenced this pull request May 17, 2026
…1931)

Adds a Windows-only integration test that drives the IOCP writer and
batched disk writer with a small `buffer_size` and shallow `concurrent_ops`
so multi-megabyte payloads must be issued as many overlapped submissions
with multiple completion-port drain cycles per flush. This models the
shape that surfaces partial completions on memory-constrained Windows
hosts and verifies the writer accumulates every byte across resubmissions.

Covers five scenarios:

- `IocpDiskBatch` 16 MiB payload through 4 KiB buffer with 2-op queue
- `IocpWriter` 16 MiB payload through 8 KiB buffer with implicit flushes
- `IocpWriter` single `write_all` of a non-buffer-multiple length forced
  to split across many internal chunks
- error path: write/commit against a batch with no active file returns
  `InvalidInput`
- error path: `begin_file` against a read-only handle propagates the
  underlying `ReOpenFile` failure rather than silently succeeding

Gated by `#![cfg(all(target_os = "windows", feature = "iocp"))]` so the
file compiles to nothing on Linux and macOS. No new dev-dependencies.
oferchen added a commit that referenced this pull request May 17, 2026
…1931) (#4234)

* test(fast_io): IOCP partial-write integration under memory pressure (#1931)

Adds a Windows-only integration test that drives the IOCP writer and
batched disk writer with a small `buffer_size` and shallow `concurrent_ops`
so multi-megabyte payloads must be issued as many overlapped submissions
with multiple completion-port drain cycles per flush. This models the
shape that surfaces partial completions on memory-constrained Windows
hosts and verifies the writer accumulates every byte across resubmissions.

Covers five scenarios:

- `IocpDiskBatch` 16 MiB payload through 4 KiB buffer with 2-op queue
- `IocpWriter` 16 MiB payload through 8 KiB buffer with implicit flushes
- `IocpWriter` single `write_all` of a non-buffer-multiple length forced
  to split across many internal chunks
- error path: write/commit against a batch with no active file returns
  `InvalidInput`
- error path: `begin_file` against a read-only handle propagates the
  underlying `ReOpenFile` failure rather than silently succeeding

Gated by `#![cfg(all(target_os = "windows", feature = "iocp"))]` so the
file compiles to nothing on Linux and macOS. No new dev-dependencies.

* test(fast_io): import FileWriter trait for bytes_written
oferchen added a commit that referenced this pull request May 18, 2026
Specifies regression coverage for IocpDiskBatch::submit_write_batch
short-completion handling, with a small-ring-buffer harness, a
deterministic completion injector, and a memory-pressure scenario
that bounds queue depth and verifies byte-for-byte fidelity.
oferchen added a commit that referenced this pull request May 18, 2026
…1931) (#4234)

* test(fast_io): IOCP partial-write integration under memory pressure (#1931)

Adds a Windows-only integration test that drives the IOCP writer and
batched disk writer with a small `buffer_size` and shallow `concurrent_ops`
so multi-megabyte payloads must be issued as many overlapped submissions
with multiple completion-port drain cycles per flush. This models the
shape that surfaces partial completions on memory-constrained Windows
hosts and verifies the writer accumulates every byte across resubmissions.

Covers five scenarios:

- `IocpDiskBatch` 16 MiB payload through 4 KiB buffer with 2-op queue
- `IocpWriter` 16 MiB payload through 8 KiB buffer with implicit flushes
- `IocpWriter` single `write_all` of a non-buffer-multiple length forced
  to split across many internal chunks
- error path: write/commit against a batch with no active file returns
  `InvalidInput`
- error path: `begin_file` against a read-only handle propagates the
  underlying `ReOpenFile` failure rather than silently succeeding

Gated by `#![cfg(all(target_os = "windows", feature = "iocp"))]` so the
file compiles to nothing on Linux and macOS. No new dev-dependencies.

* test(fast_io): import FileWriter trait for bytes_written
oferchen added a commit that referenced this pull request May 18, 2026
…1931) (#4234)

* test(fast_io): IOCP partial-write integration under memory pressure (#1931)

Adds a Windows-only integration test that drives the IOCP writer and
batched disk writer with a small `buffer_size` and shallow `concurrent_ops`
so multi-megabyte payloads must be issued as many overlapped submissions
with multiple completion-port drain cycles per flush. This models the
shape that surfaces partial completions on memory-constrained Windows
hosts and verifies the writer accumulates every byte across resubmissions.

Covers five scenarios:

- `IocpDiskBatch` 16 MiB payload through 4 KiB buffer with 2-op queue
- `IocpWriter` 16 MiB payload through 8 KiB buffer with implicit flushes
- `IocpWriter` single `write_all` of a non-buffer-multiple length forced
  to split across many internal chunks
- error path: write/commit against a batch with no active file returns
  `InvalidInput`
- error path: `begin_file` against a read-only handle propagates the
  underlying `ReOpenFile` failure rather than silently succeeding

Gated by `#![cfg(all(target_os = "windows", feature = "iocp"))]` so the
file compiles to nothing on Linux and macOS. No new dev-dependencies.

* test(fast_io): import FileWriter trait for bytes_written
oferchen added a commit that referenced this pull request Aug 24, 2026
Specifies regression coverage for IocpDiskBatch::submit_write_batch
short-completion handling, with a small-ring-buffer harness, a
deterministic completion injector, and a memory-pressure scenario
that bounds queue depth and verifies byte-for-byte fidelity.
oferchen added a commit that referenced this pull request Aug 24, 2026
…1931) (#4234)

* test(fast_io): IOCP partial-write integration under memory pressure (#1931)

Adds a Windows-only integration test that drives the IOCP writer and
batched disk writer with a small `buffer_size` and shallow `concurrent_ops`
so multi-megabyte payloads must be issued as many overlapped submissions
with multiple completion-port drain cycles per flush. This models the
shape that surfaces partial completions on memory-constrained Windows
hosts and verifies the writer accumulates every byte across resubmissions.

Covers five scenarios:

- `IocpDiskBatch` 16 MiB payload through 4 KiB buffer with 2-op queue
- `IocpWriter` 16 MiB payload through 8 KiB buffer with implicit flushes
- `IocpWriter` single `write_all` of a non-buffer-multiple length forced
  to split across many internal chunks
- error path: write/commit against a batch with no active file returns
  `InvalidInput`
- error path: `begin_file` against a read-only handle propagates the
  underlying `ReOpenFile` failure rather than silently succeeding

Gated by `#![cfg(all(target_os = "windows", feature = "iocp"))]` so the
file compiles to nothing on Linux and macOS. No new dev-dependencies.

* test(fast_io): import FileWriter trait for bytes_written
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant