Skip to content

Fix high cpu usage during cfapi hydration - #735

Merged
TheOneRing merged 1 commit into
stable-3.0from
work/vfs_buffer
Dec 1, 2025
Merged

TheOneRing merged 1 commit into
stable-3.0from
work/vfs_buffer

Conversation

@TheOneRing

@TheOneRing TheOneRing commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

cfapi use a bigger buffer for hydrations the call to CfExecute is quite expensive.

Copilot AI left a comment

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.

Pull request overview

This PR optimizes the Cloud Files API (cfapi) hydration process by significantly increasing the buffer size to reduce the frequency of expensive CfExecute calls.

Key Changes:

  • Increased buffer size from 40 KiB to 4 MiB (100x increase)
  • Adjusted write threshold from 4 KiB to 90% of buffer capacity (3.6 MiB)
  • Relocated buffer size assertion to only check before writes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheOneRing TheOneRing changed the title cfapi use a bigger buffer for hydrations Fix high cpu usage during cfapi hydration Dec 1, 2025
The call to CfExecute is quite expensive.
@TheOneRing
TheOneRing enabled auto-merge (rebase) December 1, 2025 15:16
@TheOneRing
TheOneRing merged commit 6f99ed5 into stable-3.0 Dec 1, 2025
@TheOneRing
TheOneRing deleted the work/vfs_buffer branch December 1, 2025 15:28
@openclouders openclouders mentioned this pull request Dec 1, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants