Skip to content

perf: memory perf, lazy read & stream read#321

Merged
MathNya merged 3 commits into
MathNya:masterfrom
attila-lin:dev/perf
May 25, 2026
Merged

perf: memory perf, lazy read & stream read#321
MathNya merged 3 commits into
MathNya:masterfrom
attila-lin:dev/perf

Conversation

@attila-lin
Copy link
Copy Markdown
Contributor

I encountered a fairly serious performance issue when processing large tables. In some cases, memory usage would continue growing and could even reach tens of gigabytes.

I used AI-assisted optimization to refactor the lazy-read path into a streaming-based approach. With this change, memory usage now stays at a much healthier level (around 50 MB in my test case).

That said, I have to admit I did not manually review every part of the generated code in depth.

If you notice any issues or have suggestions, please let me know and I’ll be happy to make further adjustments.

Comment thread tests/integration_test.rs
}

#[test]
#[ignore]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are the test that were added ignored?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I use env to run the special perf. So we don't need to run it every time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see, thanks for explaining.

@MathNya
Copy link
Copy Markdown
Owner

MathNya commented May 18, 2026

@attila-lin
Thank you for the PR.
I will review the details.

@MathNya MathNya merged commit 45bff94 into MathNya:master May 25, 2026
5 checks passed
@MathNya
Copy link
Copy Markdown
Owner

MathNya commented May 25, 2026

@attila-lin
Since there were no issues, I'll merge it.

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.

4 participants