insomnia
insomnia copied to clipboard
optimize(Git): move long-running git operations to a separate process to prevent blocking main thread
Background
INS-5761
When there are more than 1000 requests in one collection, some git operations will significantly block the main process, and users can't do anything during that time. This has seriously affected the user experience.
Changes
- Move
gitStatus,diffFileLoader, andgitChangesLoaderto a separate process to avoid them blocking the main process.
Still reuse the current git service and database, so currently only support read only operations in the git process.
Comparison
Current
https://github.com/user-attachments/assets/8306f9d9-56db-4360-a4e1-e1298589f464
After
https://github.com/user-attachments/assets/7a3046b0-e1ce-4ecc-a77c-bae803d2a07b