Skip to content

perf: add streaming file operations and optimize directory listing#4

Merged
Wh1isper merged 4 commits intomainfrom
feat-performance
Feb 1, 2026
Merged

perf: add streaming file operations and optimize directory listing#4
Wh1isper merged 4 commits intomainfrom
feat-performance

Conversation

@Wh1isper
Copy link
Contributor

@Wh1isper Wh1isper commented Feb 1, 2026

closes #3

Wh1isper and others added 2 commits February 1, 2026 09:17
- Add read_bytes_stream/write_bytes_stream for memory-efficient large file handling
- Add list_dir_with_types to avoid N+1 is_dir calls in generate_filetree
- Optimize read_bytes to use seek instead of slicing entire file content
- Use streaming for cross-boundary copy/move operations
- Add parallel option to ResourceRegistry.close_all for concurrent cleanup
- Export DEFAULT_CHUNK_SIZE constant from protocols

Co-Authored-By: Paintress <paintress@arcoer.com>
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 77.01149% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agent_environment/file_operator.py 65.5% 19 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@Wh1isper Wh1isper merged commit 9866f5e into main Feb 1, 2026
8 checks passed
@Wh1isper Wh1isper deleted the feat-performance branch February 1, 2026 01:35
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.

improve performance for copy/move between tmp and fileops

1 participant