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

Improve Forbidden Valley Load Times #179

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

TheNexusAvenger
Copy link
Member

Load times for Forbidden Valley are currently several minutes, which is due to an IO bottleneck when parsing the .lvl files in InfectedRose. This pull request changes the file opening method to load the entire file into memory for parsing instead of relying on gradually reading the file. This change reduces the load times to <25 seconds on my system for Forbidden Valley.

@MickVermeulen
Copy link
Member

Sorry for the late response but would this improve load times for other worlds as well?

@TheNexusAvenger
Copy link
Member Author

Avant Gardens was loading a bit faster when I tried, but not by much. Maybe half a second or so. Forbidden Valley seemed to be the only world where the level parsing was the slowest part by a lot.

@MickVermeulen MickVermeulen merged commit e44814b into dev Feb 3, 2021
@MickVermeulen MickVermeulen deleted the enhancement/improve-fv-load-time branch February 3, 2021 18:28
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