Skip to content

Conversation

YingboMa
Copy link
Member

@YingboMa YingboMa commented Oct 19, 2022

Before:

julia> @time sysRed, = structural_simplify(sysEx, (inputs=(), outputs=()));
 10.891029 seconds (31.88 M allocations: 7.849 GiB, 18.15% gc time)

After:

julia> @time sysRed, = structural_simplify(sysEx, (inputs=(), outputs=()));
  4.473470 seconds (31.59 M allocations: 2.248 GiB, 12.30% gc time)

Before:
```julia
julia> @time sysRed, = structural_simplify(sysEx, (inputs=(), outputs=()));
 10.891029 seconds (31.88 M allocations: 7.849 GiB, 18.15% gc time)
```

After:
```
julia> @time sysRed, = structural_simplify(sysEx, (inputs=(), outputs=()));
  7.814676 seconds (31.85 M allocations: 4.889 GiB, 13.28% gc time)
```
```julia
julia> @time sysRed, = structural_simplify(sysEx, (inputs=(), outputs=()));
  5.951818 seconds (31.59 M allocations: 2.248 GiB, 10.44% gc time)
```
@YingboMa YingboMa changed the title Make tearing only allocate O(N) memory Make tearing only allocate O(N) memory and fix count_nonzeros perf problem Oct 19, 2022
@YingboMa YingboMa merged commit 9a44828 into master Oct 19, 2022
@YingboMa YingboMa deleted the myb/tearing_opt branch October 19, 2022 14:08
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.

1 participant