Skip to content

Memory: reuse compressed image/depth blobs when pixels are unchanged - #1766

Merged
matlabbe merged 3 commits into
introlab:masterfrom
torjusti:reuse-compressed
Sep 13, 2026
Merged

matlabbe merged 3 commits into
introlab:masterfrom
torjusti:reuse-compressed

Conversation

@torjusti

@torjusti torjusti commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Still chasing optimizations but they are getting harder to find 🙂

rtabmap-reprocess currently re-compresses every image, this skips the compression step if the image has not been changed. It only saves a couple milliseconds for me per frame so might not be worth the additional complexity.

There is also the additional benefit that we don't damage images with repeated JPEG compression if reprocessing reprocessed databases, although I don't think it amounts to much

@matlabbe

Copy link
Copy Markdown
Member

That makes sense, thanks for the PR. Gonna fix the flaky test and merge this.

@matlabbe
matlabbe merged commit 6075e52 into introlab:master Sep 13, 2026
27 checks passed
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.

2 participants