cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.16k stars 3.82k forks source link

server,sql,kv: contexts account for 6% of all allocated objects under sysbench oltp_read_only #135904

Open tbg opened 10 hours ago

tbg commented 10 hours ago

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

Epic: CRDB-42584

Jira issue: CRDB-44784