Skip to content

Conversation

@j2rong4cn
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for using temporary files as large buffers in the stream package to improve memory efficiency when handling large files. The implementation introduces an interface-based approach for stream section readers and adds a file-based buffering strategy as an alternative to memory-based buffering.

  • Introduces StreamSectionReaderIF interface to support multiple buffering strategies
  • Adds file-based buffering using temporary files for large streams that exceed buffer limits
  • Updates all driver implementations to use the new interface type instead of concrete types

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
internal/stream/util.go Implements the new interface and file-based buffering strategy with temporary file support
drivers/teldrive/types.go Updates type declarations to use the new interface
drivers/mediafire/util.go Updates variable type to use interface
drivers/doubao/util.go Updates variable type to use interface
drivers/189pc/utils.go Updates variable type to use interface
drivers/123_open/upload.go Updates variable type to use interface
drivers/123/upload.go Updates variable type to use interface

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@PIKACHUIM PIKACHUIM merged commit 2edc446 into OpenListTeam:main Oct 1, 2025
14 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.

2 participants