Skip to content

Commit

Permalink
Increase the size of the read buffer on Deno (#501)
Browse files Browse the repository at this point in the history
* Increase the size of the read buffer on Deno

* PR link
  • Loading branch information
tomaka authored May 3, 2023
1 parent a0629e7 commit 5919107
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Changed

- The size of the read buffer of TCP connections on Deno has been increased from 1kiB to 32kiB. This should improve the performance by reducing the number of function calls. ([#501](https://github.com/smol-dot/smoldot/pull/501))

### Fixed

- Fix panic when the best block of a chain switches to being equal to the current finalized block. This can occasionally happen for parachains in case of a reorg on the relay chain. ([#497](https://github.com/smol-dot/smoldot/pull/497))
Expand Down
2 changes: 1 addition & 1 deletion wasm-node/javascript/src/index-deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function connect(config: ConnectionConfig, forbidTcp: boolean, forbidWs: boolean
config.onMessage(readBuffer.slice(0, outcome));
return read(readBuffer)
}
; read(new Uint8Array(1024));
; read(new Uint8Array(32768));

return established;
});
Expand Down

0 comments on commit 5919107

Please sign in to comment.