[PR #1063] perf: pre-allocate arrays when length is known #3021

Open
opened 2026-03-15 21:15:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/1063
Author: @ipinak
Created: 7/23/2025
Status: 🔄 Open

Base: masterHead: perf-improvements


📝 Commits (1)

  • 590ec7a perf: pre-allocate arrays when length is known

📊 Changes

11 files changed (+41 additions, -36 deletions)

View changed files

📝 heartbeat.go (+1 -1)
📝 inspector.go (+9 -8)
📝 internal/rdb/inspect.go (+2 -2)
📝 internal/rdb/rdb.go (+1 -1)
📝 processor.go (+3 -3)
📝 scheduler.go (+2 -2)
📝 server.go (+1 -1)
📝 tools/asynq/cmd/dash/draw.go (+3 -3)
📝 tools/asynq/cmd/root.go (+17 -13)
📝 tools/asynq/cmd/server.go (+1 -1)
📝 tools/asynq/cmd/stats.go (+1 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/1063 **Author:** [@ipinak](https://github.com/ipinak) **Created:** 7/23/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `perf-improvements` --- ### 📝 Commits (1) - [`590ec7a`](https://github.com/hibiken/asynq/commit/590ec7a413e0c6c395c0e29795b39cc45a82fcbb) perf: pre-allocate arrays when length is known ### 📊 Changes **11 files changed** (+41 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `heartbeat.go` (+1 -1) 📝 `inspector.go` (+9 -8) 📝 `internal/rdb/inspect.go` (+2 -2) 📝 `internal/rdb/rdb.go` (+1 -1) 📝 `processor.go` (+3 -3) 📝 `scheduler.go` (+2 -2) 📝 `server.go` (+1 -1) 📝 `tools/asynq/cmd/dash/draw.go` (+3 -3) 📝 `tools/asynq/cmd/root.go` (+17 -13) 📝 `tools/asynq/cmd/server.go` (+1 -1) 📝 `tools/asynq/cmd/stats.go` (+1 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#3021
No description provided.