Replies: 2 comments
-
Yes, that is correct. It's not actually doing anything beyond
It is Footnotes
|
Beta Was this translation helpful? Give feedback.
-
@davidbarsky , thank you for the explanation. |
Beta Was this translation helpful? Give feedback.
-
What is the cost of running these 2 lines of code?
I looks like line 1 involved creating structs with default values, an Arc and an RW Lock and should be lightning fast.
The code behind line 2 was getting a bit too complicated for me to estimate.
Looks like it depends on the number of the callsites and the size of the registry.
Contrary to my research, I was getting about 10us duration for line 1 and 0 for line 2 in my minimal test.
I'll appreciated any insight you can share.
Beta Was this translation helpful? Give feedback.
All reactions