Skip to content

perf(dav): always use zip64 for directory downloads, removing upfront file enumeration - #56113

Open
juliusknorr wants to merge 1 commit into
masterfrom
perf/zip-download
Open

perf(dav): always use zip64 for directory downloads, removing upfront file enumeration#56113
juliusknorr wants to merge 1 commit into
masterfrom
perf/zip-download

Conversation

@juliusknorr

@juliusknorr juliusknorr commented Oct 31, 2025

Copy link
Copy Markdown
Member

When downloading large amount of files as ZIP, we may spend time counting files and holding them in memory. The only reason for this is to determine if zip32 or zip64 shall be used.

We can take a shortcut to always use zip64. Support for zip32 can be dropped as all clients should support opening zip64 these days

@juliusknorr
juliusknorr requested a review from a team as a code owner October 31, 2025 11:58
@juliusknorr
juliusknorr requested review from Altahrim, ArtificialOwl, icewind1991, susnux and yemkareems and removed request for a team October 31, 2025 11:58
Comment thread apps/dav/lib/Connector/Sabre/ZipFolderPlugin.php Outdated
Comment thread apps/dav/lib/Connector/Sabre/ZipFolderPlugin.php Outdated
… for zip64

Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr

Copy link
Copy Markdown
Member Author

Bump for reviews, would be great to get this in for 33

@susnux susnux 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.

Maybe short cut it even more:
Use zip64 always

}

$streamer = new Streamer($tarRequest, -1, count($content), $this->timezoneFactory);

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.

Suggested change

@joshtrichards joshtrichards changed the title perf: Optimize downloading directories as zip to avoid counting files for zip64 perf(dav): always use zip64 for directory downloads, removing upfront file enumeration Jun 19, 2026
@joshtrichards joshtrichards added this to the Nextcloud 35 milestone Jun 19, 2026
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

4 participants