Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[perf] - Optimize Chunk Size Handling for Improved I/O and Memory Efficiency #3052

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

ahrav
Copy link
Collaborator

@ahrav ahrav commented Jul 7, 2024

Description:

This PR refines the chunk size handling mechanism in our file processing pipeline to optimize I/O operations and memory usage. The changes include updating the logic for determining chunk sizes based on file sizes, using appropriate thresholds, and setting chunk sizes that align better with common file sizes and I/O efficiency.

The new chunk size logic is integrated into the file handling processes to ensure efficient processing.

Bechmarks:

Screenshot 2024-07-07 at 4 45 10 PM

~6GB Filesystem Scan
BEFORE: (~49s)
Screenshot 2024-07-20 at 2 53 36 PM

AFTER: (~37s)
Screenshot 2024-07-20 at 2 51 59 PM

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@ahrav ahrav force-pushed the perf-optimize-chunker branch 4 times, most recently from 78d485b to ecf8ef7 Compare July 8, 2024 02:10
@ahrav ahrav force-pushed the perf-optimize-chunker branch from ecf8ef7 to 36788ec Compare July 8, 2024 02:16
@ahrav ahrav marked this pull request as ready for review July 8, 2024 02:24
@ahrav ahrav requested review from a team as code owners July 8, 2024 02:24
@ahrav ahrav requested review from rosecodym and a team July 10, 2024 21:25
@CLAassistant
Copy link

CLAassistant commented Jul 14, 2024

CLA assistant check
All committers have signed the CLA.

Base automatically changed from optimization-reduce-allocations to main July 17, 2024 21:04
@ahrav ahrav force-pushed the perf-optimize-chunker branch from a9e22b8 to 025bac2 Compare July 20, 2024 04:00
@ahrav ahrav force-pushed the perf-optimize-chunker branch from 6be2132 to 5970cfb Compare July 20, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants