|
|
|
|
|
by tdrd
3477 days ago
|
|
Cockroach Labs employee here - the implementation only uses a single context key, so traversing the context linked list is only necessary when the context in hand is a derivative of the annotated context (e.g. obtained via WithTimeout or WithCancel), which is relatively uncommon in practice. https://github.com/cockroachdb/cockroach/blob/6b0698f/pkg/ut... |
|
I'd just like to see good'ol'benchmarks that this is not a problem, before I trust the Context for data :)