Skip to content

Index pin ownership before building chip partitions - #191

Merged
seveibar merged 3 commits into
mainfrom
agent/index-pin-ownership-lookups
Jul 31, 2026
Merged

Index pin ownership before building chip partitions#191
seveibar merged 3 commits into
mainfrom
agent/index-pin-ownership-lookups

Conversation

@mohan-bee

@mohan-bee mohan-bee commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Motivation

ChipPartitionsSolver previously resolved both endpoints of every strong connection by scanning every chip and its pin list. Building the chip adjacency graph therefore repeated global pin-owner scans and could approach O(strong connections × chips × pins per chip) before the connected-component traversal even began.

The same pin-owner map was also reimplemented in several solver paths, and grounded-load layout performed another owner scan after discovery had already found the main chip.

Evidence

Local synthetic benchmark using a 2,000-chip chain with 3,998 two-way strong-connection entries:

Revision Median partition time
b964a93 before index 327.005 ms
95e3721 with index 2.479 ms

Method: Bun 1.3.14, one warm-up followed by seven measured runs on the same machine. This is focused evidence for the removed lookup hotspot, not a universal end-to-end performance claim.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
matchpack Ready Ready Preview Jul 31, 2026 5:32am

Request Review

@mohan-bee
mohan-bee marked this pull request as ready for review July 31, 2026 05:27
@seveibar
seveibar merged commit 11b765e into main Jul 31, 2026
5 checks passed
@mohan-bee
mohan-bee deleted the agent/index-pin-ownership-lookups branch July 31, 2026 05:36
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