Skip to content

[CLEAN] Synthetic Benchmark PR #140126 - ESQL: Aggressively free topn#65

Open
bar-qodo wants to merge 1 commit intobase_pr_140126_20260113_4669from
clean_pr_140126_20260113_4669
Open

[CLEAN] Synthetic Benchmark PR #140126 - ESQL: Aggressively free topn#65
bar-qodo wants to merge 1 commit intobase_pr_140126_20260113_4669from
clean_pr_140126_20260113_4669

Conversation

@bar-qodo
Copy link

Benchmark PR elastic#140126

Type: Clean (correct implementation)

Original PR Title: ESQL: Aggressively free topn
Original PR Description: Without this we free the entire TopNOperator and then pitch the reference to it. It'd be best if these two things were atomically locked together, but so long as everything we free is small-ish we can live with keeping the reference for a bit. We reserve some room to maneuver here. But if the thing we're freeing is quite large this ain't great. We think we have room to allocate but we don't.

With this we pitch the reference to each row as we go so they can be GCed immediately. This keeps the untracked-but-hard-referenced state to a single row at a time.

Original PR URL: elastic#140126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants