Skip to content

Defer pathc loading and buffer pathc reads#3

Open
IvanKarpan wants to merge 1 commit intoLukeFZ:masterfrom
IvanKarpan:fix/lazy-pathc-loading
Open

Defer pathc loading and buffer pathc reads#3
IvanKarpan wants to merge 1 commit intoLukeFZ:masterfrom
IvanKarpan:fix/lazy-pathc-loading

Conversation

@IvanKarpan
Copy link
Copy Markdown

While extracting a few loose game files from a Windows drive through WSL (/mnt/d/...), anything that spun up PackageContext felt like it hung right after starting work—the process barely moved for ages even for paths that aren't partial DDS.

That turned out to be because we always parsed meta/0.pathc during PackageContext construction, and did it with lots of tiny reads. This defers loading PATHC until a partial DDS actually needs it, and reads the whole 0.pathc file into memory before parsing so we aren't streaming small reads off disk.

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