Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cell.get_ValidCells() - don't re-calculate, use lookup table #35

Open
demisjohn opened this issue Jun 2, 2022 · 0 comments
Open

Cell.get_ValidCells() - don't re-calculate, use lookup table #35

demisjohn opened this issue Jun 2, 2022 · 0 comments

Comments

@demisjohn
Copy link
Owner

Iterating to calculate ValidCells takes a long time (few sec), especially for ~4000 Cells (possibly an unusual case of ~1.5mm die?).

One way to solve this is to calculate the valid cells only when calling a function that affects it, and then store it as an Object property for later lookup - no need to recalculate. For example, the following functions should trigger a recalc:

  • Cell/Matrix Shift
  • Cell/CellSize
  • EdgeClearance changes
  • if, during a get_ValidCells() the lookup table is not calc'd, then calculate it.

Apart from the above, get_ValidCells() should just return the lookup table stored int he object (eg. Cell.ValidCells).

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

No branches or pull requests

1 participant