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

jxl-render: Reduce EPF buffer allocation #142

Merged
merged 3 commits into from
Nov 23, 2023
Merged

jxl-render: Reduce EPF buffer allocation #142

merged 3 commits into from
Nov 23, 2023

Conversation

tirr-c
Copy link
Owner

@tirr-c tirr-c commented Nov 22, 2023

Reuse the output buffer to reduce allocation. Also improves EPF performance.

@tirr-c tirr-c self-assigned this Nov 22, 2023
@@ -305,7 +342,8 @@ pub fn run_gabor_inner(fb: &mut jxl_grid::SimpleGrid<f32>, weight1: f32, weight2
return;
}

let mut input = vec![0f32; width * (height + 2)];
let mut input = SimpleGrid::new(width, height + 2);
let input = input.buf_mut();
Copy link
Owner Author

Choose a reason for hiding this comment

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

whoops, this is an unrelated change from other experiment

@tirr-c tirr-c merged commit 1aceecd into main Nov 23, 2023
@tirr-c tirr-c deleted the reduce-epf-buffer branch November 23, 2023 09:52
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