Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

changes in stream parsing#24

Open
mukrrmsson wants to merge1 commit intobaileydanseglio:master
base:master
Choose a base branch
Loading
frommukrrmsson:master

Conversation

@mukrrmsson
Copy link

Instead of asking the socket each time, byte amount of a contract, quote, trade etc., we ask a certain buffer size (e.g. 4KB) and wait until socket delivers it. Upon reception, the whole byte buffer is parsed. I find this faster than the original method. However, there are some caveats:

  1. Socket will wait until there is enough data (i.e. buffer size), this can introduce delays into data delivery into callback if the buffer size is too high compared to expected delivered number of messages as the socket will wait.
  2. I noticed that on my Windows 11 machine, if buffer size is too small, sometimes ethernet crashes. Not sure if this is OS or device or Theta Terminal.
  3. Therefore a good balance needs to be found where we do not get throttled by OS and also dont get delayed due to longer waiting times at socket until buffer size is filled.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@mukrrmsson

[8]ページ先頭

©2009-2025 Movatter.jp