feat: Enhance performance guidelines with multi-threading and code refactoring allowances
This commit is contained in:
2
.github/instructions/copilot.instructions.md
vendored
2
.github/instructions/copilot.instructions.md
vendored
@@ -66,12 +66,14 @@ applyTo: '**'
|
|||||||
### 8. Performance
|
### 8. Performance
|
||||||
- Use efficient methods for updating UI elements (e.g., batch delete/insert for Treeview).
|
- Use efficient methods for updating UI elements (e.g., batch delete/insert for Treeview).
|
||||||
- Avoid unnecessary data reloads or UI refreshes.
|
- Avoid unnecessary data reloads or UI refreshes.
|
||||||
|
- Use multi-threading when appropriate.
|
||||||
|
|
||||||
## When Generating or Reviewing Code
|
## When Generating or Reviewing Code
|
||||||
- Respect the modular structure—add new logic to the appropriate manager or window class.
|
- Respect the modular structure—add new logic to the appropriate manager or window class.
|
||||||
- Do not hardcode medicine/pathology names—always use dynamic keys from the managers.
|
- Do not hardcode medicine/pathology names—always use dynamic keys from the managers.
|
||||||
- Preserve user feedback (status bar, dialogs) for all actions.
|
- Preserve user feedback (status bar, dialogs) for all actions.
|
||||||
- Maintain keyboard shortcut support for new features.
|
- Maintain keyboard shortcut support for new features.
|
||||||
|
- Code Refactoring is allowed as long as it does not change the external behavior of the code.
|
||||||
- Ensure compatibility with the existing UI and data model.
|
- Ensure compatibility with the existing UI and data model.
|
||||||
- Write clear, concise, and maintainable code with proper type hints and docstrings.
|
- Write clear, concise, and maintainable code with proper type hints and docstrings.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user