Skip to content

perf: lazy compile and cache lua plugins as binary bytecode#2490

Merged
sxyazi merged 1 commit intomainfrom
pr-685e6d9d
Mar 17, 2025
Merged

perf: lazy compile and cache lua plugins as binary bytecode#2490
sxyazi merged 1 commit intomainfrom
pr-685e6d9d

Conversation

@sxyazi
Copy link
Owner

@sxyazi sxyazi commented Mar 17, 2025

This PR aims to improve the loading performance of Lua plugins.

After this PR, all plugins (preset and custom) will be lazily compiled and cached as a binary bytecode representation upon first use, and will subsequently be loaded directly from the binary cache rather than being recompiled from the textual source code, thereby improving the overall performance of the plugin system.

@sxyazi sxyazi merged commit c5808a0 into main Mar 17, 2025
6 checks passed
@sxyazi sxyazi deleted the pr-685e6d9d branch March 17, 2025 08:12
Lemi0002 pushed a commit to Lemi0002/yazi that referenced this pull request Apr 10, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant