This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit 6906dbf
Port to 2.1 - Fix performance regression in Guid.NewGuid on OSX (#29457)
We have recently removed dependency on the libuuid for Guid creation. Unfortunately,
while the perf on Linux has improved, we have not noticed that the perf on OSX
degraded 10 fold.
This change fixes it by modifying the implementation of the underlying
SystemNative_GetNonCryptographicallySecureRandomBytes to use arc4random
like the uuid_generate_random that we were using before the libuuid dependency
removal does.1 parent 484f904 commit 6906dbf
File tree
3 files changed
+10
-0
lines changed- src/Native/Unix
- Common
- System.Native
3 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| 100 | + | |
96 | 101 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
0 commit comments