Skip to content

Optimize: Evaluate built-in LUT generator once per entry - #2356

Open
brechtvl wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
brechtvl:opt-lut-eval
Open

brechtvl wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
brechtvl:opt-lut-eval

Conversation

@brechtvl

@brechtvl brechtvl commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The same value was computed three times.

Time constructing processors for all displays/views/spaces in the ACES studio config goes from 279ms to 223ms on Apple M3 Max.

The same value was computed three times.

Time constructing processors for all displays/views/spaces in the
ACES studio config goes from 279ms to 223ms on Apple M3 Max.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
@KevinJW

KevinJW commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Interesting wonder why the optimiser didn't hoist the function call.

LGTM

@brechtvl

brechtvl commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

It would need to be a pure function without side effects for that, the compiler can't assume that for std::function.

@KevinJW

KevinJW commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Indeed, I just expanded the diff in the PR and noticed that and was about to go down the std::function standardese :-)

This branch has not been deployed

No deployments
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