Closed fogti closed 3 years ago
this is to save code: there are two sync
impls
Couldn't appropriate From
impls be added to the two sync
impls? They would probably invoke far lesser code than currently (esp. as the code uses atomics and mutexes, which both interactions aren't required in that code path as there is only one owner which can access it).
Yeah, makes sense to do this.
Why is the unsync version initialized directly, but the sync version isn't?
unsync:
sync: