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

Reduce ToGraph memory usage #85

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Reduce ToGraph memory usage #85

merged 1 commit into from
Aug 23, 2024

Conversation

qmuntal
Copy link
Owner

@qmuntal qmuntal commented Aug 23, 2024

Improvements:

goos: windows
goarch: amd64
pkg: github.com/qmuntal/stateless
cpu: Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
           │   old.txt    │            new.txt            │
           │    sec/op    │   sec/op     vs base          │
ToGraph-12   15.24µ ± 20%   15.13µ ± 6%  ~ (p=0.247 n=10)

           │   old.txt    │               new.txt                │
           │     B/op     │     B/op      vs base                │
ToGraph-12   7.188Ki ± 0%   5.569Ki ± 0%  -22.51% (p=0.000 n=10)

           │  old.txt   │              new.txt               │
           │ allocs/op  │ allocs/op   vs base                │
ToGraph-12   196.0 ± 0%   172.0 ± 0%  -12.24% (p=0.000 n=10)

@qmuntal qmuntal merged commit 2fa91c8 into master Aug 23, 2024
14 checks passed
@qmuntal qmuntal deleted the optg branch August 23, 2024 09:14
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