Skip to content

fix: add combined size pool#1848

Open
wayfarer3130 wants to merge 7 commits into
betafrom
feat/add-combined-size-pool
Open

fix: add combined size pool#1848
wayfarer3130 wants to merge 7 commits into
betafrom
feat/add-combined-size-pool

Conversation

@wayfarer3130
Copy link
Copy Markdown
Collaborator

Context

This PR lays the groundwork for adding display fetch controls that delay initial fetching of thumbnails and prefetches until the primary viewports are completed.

Changes & Results

Adds a prefetch queue for metadata
Adds an overall maximum size prefetch queue that applies to the metadata through prefetch queues, with the higher priority queues being done first. The intent of this is in an application such as OHIF to allow all the metadata queries to be sent off initially, and then let those continue to come in, while the initial images are not fetched initially. Then, the viewport specific images would be fetched and then thumbnails and finally prefetch images.

Testing

Link into OHIF, and display a study with thumbnails and prefetch. Add a log message on prefetch queue.
Reduce the delay in study browser to 125 ms or something like that, and all the thumbnails should be before the prefetch.
Should also add the metadata prefetch to the queue at level metadata, and add a viewport fetch for first image at low priority as soon as the display sets are created. That will demonstrate slowly fetching viewport/thumbnail images mixed in with metadata requests.

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:

@wayfarer3130 wayfarer3130 requested a review from sedghi February 24, 2025 16:27
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 24, 2025

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit ac139f9
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/67bc9dd806923e000815507d
😎 Deploy Preview https://deploy-preview-1848--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.

@wayfarer3130 wayfarer3130 changed the base branch from main to beta May 8, 2026 13:33
@wayfarer3130 wayfarer3130 changed the title feat: add combined size pool fix: add combined size pool May 8, 2026
@wayfarer3130 wayfarer3130 requested a review from jbocce May 8, 2026 13:34
Comment thread packages/core/src/requestPool/requestPoolManager.ts Outdated
const hasRemainingThumbnailRequests = this.sendRequests(
RequestType.Thumbnail
RequestType.Thumbnail,
(available > 0 && available) ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be simplied to (available > 0)?

Comment thread packages/core/src/requestPool/requestPoolManager.ts
Copy link
Copy Markdown
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of things to look at. Thanks.

@jbocce
Copy link
Copy Markdown
Collaborator

jbocce commented May 15, 2026

@claude review

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, comment @claude review on this pull request to trigger a review.

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