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
#135,904 2 comments 0 reactions 1 assignee Claimed by @RaduBerinde View on GitHub
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.

![image](https://github.com/user-attachments/assets/104e1b25-91a7-4d6c-a2e3-91460a170593)

Jira issue: CRDB-44784

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.