Skip to content

Remove frames in PixelDataInfo if the frame channel option is used#295

Open
luongthanhlam wants to merge 1 commit into
suyashkumar:mainfrom
segmed:reduce-allocation-per-channel
Open

Remove frames in PixelDataInfo if the frame channel option is used#295
luongthanhlam wants to merge 1 commit into
suyashkumar:mainfrom
segmed:reduce-allocation-per-channel

Conversation

@luongthanhlam
Copy link
Copy Markdown

@luongthanhlam luongthanhlam commented Nov 6, 2023

Remove frames in PixelDataInfo if the frame channel option is used

Comment thread read.go Outdated
Comment thread read.go
Comment on lines +259 to 261
} else {
image.Frames = append(image.Frames, &f)
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I suppose this is also an API change that means the PixelDataInfo returned from Parse will not have frames populated if the framechannel option is used? This might be ok, but is a meaningful change I'll think about a little.

@luongthanhlam luongthanhlam force-pushed the reduce-allocation-per-channel branch from 98a517c to 5006dd8 Compare November 7, 2023 01:13
@luongthanhlam luongthanhlam changed the title Recycle memory to reduce footprint during readNativeFrames with frame channel, leads to 72x performance improvement Remove frames in PixelDataInfo if the frame channel option is used Nov 7, 2023
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.

3 participants