Commit a0ec41f
committed
Fix unnecessary allocation for HighResTimer
There's a minor optimization in HighResTimer where
we can avoid allocating a new EventArgs object every
time the timer elapses. Instead, we can use EventArgs.Empty
to reduce memory usage and improve performance which
is especially important in resource-constrained environments.
Signed-off-by: Anton Kulikov <[email protected]>1 parent 4a3d148 commit a0ec41f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments