cockroachdb / cockroachdb/cockroach
server,sql,kv: contexts account for 6% of all allocated objects under sysbench oltp_read_only (1.9% cpu on oltp_read_write)
Open
A-storage
branch-master
C-performance
o-perf-efficiency
T-storage
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Certainly this can be improved, which could speed up critical code paths and ease pressure on the garbage collector.
Context are nested, and we likely nest then fairly deep, resulting in linked lists that are traversed multiple times during the lifetime of a request on the critical path.

Jira issue: CRDB-44784
Contributor guide
Assessment
This issue has not been assessed yet.