Skip to content

only advance the read cursor by one node when returning nodes - #27

Closed
arvidn wants to merge 1 commit into
bittorrent:masterfrom
arvidn:node-buffer-advance
Closed

only advance the read cursor by one node when returning nodes#27
arvidn wants to merge 1 commit into
bittorrent:masterfrom
arvidn:node-buffer-advance

Conversation

@arvidn

@arvidn arvidn commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

to maximize the memory cache utilization. This is especially useful when serving nodes from a node buffer that gets evicted to disk.

Does this make sense?

…imize the memory cache utilization. This is especially useful when serving nodes from a node buffer that gets evicted to disk.
@arvidn

arvidn commented Aug 24, 2016

Copy link
Copy Markdown
Contributor Author

@ssiloti

ssiloti commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

Doesn't seem worth it to me. Prefetch should hide most of the latency here and the transfer rate is nowhere near the memory bandwidth of a modern server. The node buffer shouldn't be getting evicted to disk during normal operation either.

@ssiloti ssiloti closed this Feb 21, 2017
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