Conversation
…rts" This reverts commit 540bb98
…rts" This reverts commit 540bb98
| #[serde(default)] | ||
| pub collections: Vec<LocalCollection>, | ||
| #[serde(default)] | ||
| pub import_scan_retry: HashMap<String, u8>, |
There was a problem hiding this comment.
Why is there a need to persist this?
There was a problem hiding this comment.
Need to know what path caused the problem when restarting the program next time
phira/src/data.rs
Outdated
| continue; | ||
| } | ||
| let path = entry.path(); | ||
| if self.import_scan_retry.get(&filename).copied().unwrap_or_default() >= 2 { |
There was a problem hiding this comment.
bump_entry should be combined into this
There was a problem hiding this comment.
what? bump_entry?Do you mean bump_retry ?
There was a problem hiding this comment.
Merging the bump_retry method into this code block will result in a complete semantic error in the code. Without bump_retry, this code block can never trigger it
ExplanationDetailsTo know how many times it was retried each game starting. The player will encounter:
Reproduce Method (before this PR)
Solution Idea
Requirements
Current Profiler Idea
Consideration
Expected Behaviour (With this PR)
Tested on AVD with 2GB RAM and chart in 430, based on the non-latest branch, with cold reboot. Style suggestion: (insignificant)
|
|
The code already has deduplication logic: charts that are already recorded in |
When a directory fails to parse multiple times, it should be deleted immediately to prevent the program from crashing indefinitely. This code has a good repair effect on application crashes caused by insufficient memory.
fix again: #430