Skip to content

Avoid unnecessary reconnections in IterStream.seek()#223

Open
ZhengKeli wants to merge 1 commit into
skshetry:mainfrom
ZhengKeli:pr/avoid-reconnection
Open

Avoid unnecessary reconnections in IterStream.seek()#223
ZhengKeli wants to merge 1 commit into
skshetry:mainfrom
ZhengKeli:pr/avoid-reconnection

Conversation

@ZhengKeli

Copy link
Copy Markdown

This is the solution of issue #222.

I made small changes to IterStream.seek() so that it can reuse the existing connection and buffer as long as the seeking target is within the current buffer. It not only avoids the problem of excessive network traffic, but also reduces the number of HTTP requests. It should be improve performance in most cases.

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