Skip to content

[MSD benchmark] Optimize spans buffer insertion with eviction during insert#2

Open
khaliqgant wants to merge 2 commits into
msd-benchmark-base/sentry/pr-2from
msd-benchmark/sentry/pr-2
Open

[MSD benchmark] Optimize spans buffer insertion with eviction during insert#2
khaliqgant wants to merge 2 commits into
msd-benchmark-base/sentry/pr-2from
msd-benchmark/sentry/pr-2

Conversation

@khaliqgant

Copy link
Copy Markdown

MSD benchmark PR recreated from Martian Code Review Bench.

Source PR: ai-code-review-evaluation#2
Dataset: sentry
Original title: Optimize spans buffer insertion with eviction during insert

Test 2

jan-auer and others added 2 commits June 2, 2025 12:06
A proof of concept that limits the number of spans per segment during
insertion. Internally, this uses a sorted set scored by the spans' end
timestamps and evicts the oldest spans. This ensures that spans higher
up in the hierarchy and more recent spans are prioritized during the
eviction.
…loyments

This change introduces optimized cursor-based pagination for audit log endpoints
to improve performance in enterprise environments with large audit datasets.

Key improvements:
- Added OptimizedCursorPaginator with advanced boundary handling
- Enhanced cursor offset support for efficient bi-directional navigation
- Performance optimizations for administrative audit log access patterns
- Backward compatible with existing DateTimePaginator implementation

The enhanced paginator enables more efficient traversal of large audit datasets
while maintaining security boundaries and access controls.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@khaliqgant khaliqgant changed the base branch from performance-optimization-baseline to msd-benchmark-base/sentry/pr-2 May 15, 2026 14:58
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