cjdrake / pyeda

Python EDA
BSD 2-Clause "Simplified" License
307 stars 55 forks source link

Performance issue with farray.__getitem__ #76

Closed cjdrake closed 10 years ago

cjdrake commented 10 years ago

I recently added some new capabilities to farray slicing, but unit tests run about 20s slower on commit 19cbb53f than commit af162061. I traced the difference down to the Sudoku solver. The _soln2str method has to slice all 729 points in the solution for every puzzle.

Bottom line: some optimization of __getitem__ would be beneficial, especially around the _iterdim function.