Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check cache when prefetching wadouri images for volume #1765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmhmd
Copy link
Contributor

@jmhmd jmhmd commented Jan 18, 2025

Context

When using wadouri: scheme with streaming image volume loader, the first, middle and possibly last images must be cached so that the volume can be constructed from metadata. Even when the needed images are cached, it seems that re-requesting them via the loadpoolmanager takes pretty long.

Changes & Results

This change first checks if the required images are already in the cache before getting the loadPoolManager involved, and skips it if so. This will only noticeably speed up volume creation when all the needed images are already cached, for instance when converting a stack to a volume.

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

When using wadouri: scheme with streaming image volume loader, the first, middle and possibly last images must be cached so that the volume can be constructed from metadata. This change first checks if the required images are already in the cache before getting the loadPoolManager involved.
Copy link

stackblitz bot commented Jan 18, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 5fef93f
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/678b1e952fa143000802f821
😎 Deploy Preview https://deploy-preview-1765--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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