This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Commit 0fe6417
committed
Also cache the username to avoid copying the connections array
The assets modification processor gets called a lot, and checking
for the user in the callbacks means a copy of the connections array
is made every single time. Add an event to signal that the connections
array has changed instead so we can update the user whenever that happens
and avoid the copy1 parent bf243b7 commit 0fe6417
File tree
5 files changed
+191
-155
lines changed- src
- GitHub.Api/Authentication
- UnityExtension/Assets/Editor/GitHub.Unity
- UI
- tests/UnitTests/Authentication
5 files changed
+191
-155
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
0 commit comments