Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: amaranth-lang/amaranth
base: 9834b7e95f3d
Choose a base ref
...
head repository: amaranth-lang/amaranth
compare: 9f78ac0691ef
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 27, 2021

  1. hdl.ast: remove quadratic time complexity in Statement.cast().

    Using `sum(lst, [])` to flatten a list of lists has quadratic time
    complexity. Use `chain.from_iterable()` instead. While not strictly
    necessary to improve performance, convert to `map()`.
    
    A test case writing out verilog for a 512k entry FIFO is 120x faster
    with this applied.
    antonblanchard committed Sep 27, 2021
    Copy the full SHA
    9f78ac0 View commit details
    Browse the repository at this point in the history