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

NodeUtils: Simplify getCacheKey(). #30303

Merged
merged 1 commit into from
Jan 10, 2025
Merged

NodeUtils: Simplify getCacheKey(). #30303

merged 1 commit into from
Jan 10, 2025

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jan 10, 2025

Related issue: -

Description

This PR removes an entry from the values array that holds the values for computing a cache key.

I'm not sure there is a reason for the existing code but to me it seems this kind of nesting is not necessary to compute a key that reflects the state of a node.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.52
79.1
339.52
79.1
+0 B
+0 B
WebGPU 490.8
136.38
490.8
136.38
-2 B
-1 B
WebGPU Nodes 490.26
136.27
490.26
136.27
-2 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 465.41
112.15
465.41
112.15
+0 B
+0 B
WebGPU 561.37
152.09
561.37
152.09
-2 B
-2 B
WebGPU Nodes 516.76
141.66
516.76
141.66
-2 B
-1 B

@sunag sunag added this to the r173 milestone Jan 10, 2025
@sunag sunag merged commit 65d4034 into mrdoob:dev Jan 10, 2025
12 checks passed
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