Skip to content

feat: zero-copy snapshot import - #1218

Open
mayocream wants to merge 2 commits into
loro-dev:mainfrom
mayocream:zero-copy-import
Open

mayocream wants to merge 2 commits into
loro-dev:mainfrom
mayocream:zero-copy-import

Conversation

@mayocream

@mayocream mayocream commented Oct 21, 2026 •

Copy link
Copy Markdown

We use Loro in an application that stores a lot of images in a .loro file. Loading a snapshot currently copies the whole file into memory. With this change it can be loaded without the copy, so images are only read when they are used.

Tested locally.

@mayocream mayocream changed the title feat: add LoroDoc::from_snapshot_bytes feat: zero-copy snapshot import Oct 21, 2026
@mayocream
mayocream marked this pull request as ready for review October 21, 2026 06:23
# Conflicts:
#	crates/loro/Cargo.toml
#	crates/loro/src/lib.rs

This branch has not been deployed

No deployments
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.

1 participant