Skip to content

A bunch of fixes and performance improvements#43

Merged
WillsonHaw merged 10 commits into
mainfrom
willson/perf-work
Jun 27, 2025
Merged

A bunch of fixes and performance improvements#43
WillsonHaw merged 10 commits into
mainfrom
willson/perf-work

Conversation

@WillsonHaw

Copy link
Copy Markdown
Contributor

A first pass of improving a bunch of performance things. This is especially helpful for node creation, and helps improve loading speed of various screens and components.

Also added optional useWebWorker setting for the flexbox plugin. This will load the yoga library in a web worker and do the
calculations on the worker. At this moment, the postMessage command is too slow and will require some more work, but
you may get some performance gains from offloading the calculations.
Removed effects and replaced with shaders since lightning v3 removes effects
Improved diff code and performance
Improved focus performance
Improved RN performance
.. and other performance improvements
@@ -0,0 +1,935 @@
diff --git a/dist/src/core/CoreNode.js b/dist/src/core/CoreNode.js

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This patch is only necessary until this commit lands in v3 beta: lightning-js/renderer@3cffb58

Bumping it causes linking issues with our RN client app
Remove the patch that's no longer needed
@WillsonHaw WillsonHaw merged commit 81ff0f5 into main Jun 27, 2025
1 check passed
@WillsonHaw WillsonHaw deleted the willson/perf-work branch June 27, 2025 18:05
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