Skip to content

Dev - #6

Merged
erayhanoglu merged 3 commits into
mainfrom
dev
Sep 12, 2026
Merged

Dev#6
erayhanoglu merged 3 commits into
mainfrom
dev

Conversation

@erayhanoglu

Copy link
Copy Markdown
Member

No description provided.

- Add a position setter to BufferReader, mirroring SmartBuffer's writable
  offset - equivalent to moveTo(), so it stays clamped to [0, size]
- flush() only (re)arms the housekeeping timer when capacity has actually
  grown past its minPages baseline; a buffer that never grew has nothing to
  reclaim, so a stream of small messages no longer pays for a
  clearTimeout/setTimeout pair on every flush (matches SmartBuffer, which
  only rearms when buffer.length > pageSize)
@erayhanoglu
erayhanoglu merged commit 2872178 into main Sep 12, 2026
3 of 4 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.

1 participant