You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description
In the Open method, when there are issues such as an invalid path or name conflicts that prevent the file from being opened, the program still proceeds with initializing the indexes. This results in unnecessary resource consumption, as the initialization is pointless when the file cannot be opened.
Proposed Improvements
Reorder the logic to prioritize attempting to open the file first.
Validate the file path before attempting to open it to avoid unnecessary disk I/O operations.
If I’ve misunderstood the issue or if the description is not clear enough, please feel free to point it out. If everything looks good, I’d be happy to submit a PR to implement this improvement😄.
The text was updated successfully, but these errors were encountered:
Issue Description
In the Open method, when there are issues such as an invalid path or name conflicts that prevent the file from being opened, the program still proceeds with initializing the indexes. This results in unnecessary resource consumption, as the initialization is pointless when the file cannot be opened.
Proposed Improvements
If I’ve misunderstood the issue or if the description is not clear enough, please feel free to point it out. If everything looks good, I’d be happy to submit a PR to implement this improvement😄.
The text was updated successfully, but these errors were encountered: