Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(err): re-work handle_event to be handle_events #28828

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

oliverb123
Copy link
Contributor

@oliverb123 oliverb123 commented Feb 17, 2025

I think this should be a significant improvement, most notably because it only resolves the issue once per fingerprint, instead of running issue resolution on every event. It also tries to be more cleverer about frame resolution, but that might turn out to be a mistake, I'm not sure yet.

If this does actually improve throughput notably, I'll refactor it to be a bit more composable, but since this might have no impact and be immediately reverted, I'd rather merge and see.

@oliverb123 oliverb123 requested a review from daibhin February 17, 2025 23:43
greptile-apps[bot]

This comment was marked as off-topic.

// We need a cloned frame to move into the closure below
let frame = frame.clone();

let context = context.clone();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to clone the context? I'm assuming it's because it needs to go across some async boundary in the task

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, we async move so the spawn'd task needs to own the captured variables. The context in this case is just an Arc though, so the clone is cheap

@oliverb123 oliverb123 merged commit 80eed32 into master Feb 18, 2025
81 checks passed
@oliverb123 oliverb123 deleted the olly_cymbal_batched branch February 18, 2025 10:22
HamedMP pushed a commit that referenced this pull request Feb 19, 2025
HamedMP pushed a commit that referenced this pull request Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants