You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Cache Prometheus WithLabelValues at init (metrics.go): eliminates
per-height map lookups and slice allocs for sync state, backfill
stages, and store operations.
- Move transient error needles to package-level var (celestia_node.go):
avoids per-retry []string heap allocation.
- Cache bearer auth metadata map at construction (celestia_app.go):
avoids map+string alloc per gRPC call.
- Replace map[string]any with struct in MarshalBlob (service.go):
~200 bytes less per blob marshal.
- Preallocate blob slices in GetBlobs, BlobGetAll, gRPC GetAll:
reduces append doublings on typical result sets.
- Optimize notifier filterEvent: skip allocation when all/no blobs
match; use exact-capacity slice for partial matches.
- Skip namespace map allocation for header-only subscriptions.
- Use slice indexing in httpToWS instead of TrimPrefix.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments