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

[1.20.1] Parallelize background file scan #86

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

embeddedt
Copy link
Member

Backport of #32 to 1.20.1.

@embeddedt embeddedt changed the title Parallelize background file scan [1.20.1] Parallelize background file scan Feb 4, 2024
@Technici4n
Copy link
Member

What about the scan result future change? Also, is this a breaking change for language loaders?

@embeddedt
Copy link
Member Author

What about the scan result future change?

I missed that, added the patch.

Also, is this a breaking change for language loaders?

I'm very skeptical it would matter, but I added a synchronized block in the latest commit so any individual loader's file visitor will never be running concurrently on multiple files. This should be good enough.

@Technici4n Technici4n merged commit 94ac62c into neoforged:1.20.1 Feb 4, 2024
1 check 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