← Back to community index
# support·Active

abeh - Hey team! I tried to generate this pcb....

Hey team! I tried to generate this pcb. Its a bit big, but it should be working and it takes 4h at the placement part. Is there a way to accelerate the autoplacement or all I need to do is buy a better CPU?

Started by abehAug 4, 202616 messages

Discussion

Last active last month · plain text
abehoriginal post
Hey team! I tried to generate this pcb. Its a bit big, but it should be working and it takes 4h at the placement part. Is there a way to accelerate the autoplacement or all I need to do is buy a better CPU?
Seve
The ahtorouting takes 4h?
astrimid
I wonder if there's some file format at lower level than circuitjson someone could git version
Seve
<@1525187702029549659> do you mean for caching the autorouting? In theory this could be done by committing `.tscircuit/cache`
abeh
well not even the routing. it like froze at the placement part
abeh
i even disabled the routing
Seve
that's very unusual
abeh
its 213 components tho so that might be why
Seve
it is likely a bug
Seve
we will get this resolved today, i'm a bit late getting on today but we'll fix it
abeh
ok all good thanks!
Rishabh
I can try to investigate this
Rishabh
Took 30sec to get the pcb preview, it was because of redundant `<trace />` elements, when the `connections={..}` on the components are already capturing the connectivity. The packer converts port-to-port <trace /> into weightedConnections, which takes really long to compute as there are 825 such constraints cc <@757706909351411845>
Rishabh
Btw <@157839368453750784> I have cleaned up the type errors, cause the code which you shared had a lot of incorrect props name. You can use this if you want
Seve
oh wow, so basically calculate-packing was slow due to the traces- i bet there are other inefficiencies, i would love to have the solver PackInput for a repro where we could try to detect that
Seve
also having a timeout on the packsolver is not a bad idea (this would be done in core when the platformConfig has a timeout configured)

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗