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

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

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

Conversation

luongthanhlam
Copy link

@luongthanhlam luongthanhlam commented Nov 6, 2023

Remove frames in PixelDataInfo if the frame channel option is used

read.go Outdated Show resolved Hide resolved
Comment on lines +259 to 261
} else {
image.Frames = append(image.Frames, &f)
}
Copy link
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