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

v1.2.0: isIP and isIPv4 performance issue #4689

Closed
twoeths opened this issue Oct 25, 2022 · 2 comments · Fixed by #4713
Closed

v1.2.0: isIP and isIPv4 performance issue #4689

twoeths opened this issue Oct 25, 2022 · 2 comments · Fixed by #4713
Assignees
Labels
prio-high Resolve issues as soon as possible. scope-performance Performance issue and ideas to improve performance.
Milestone

Comments

@twoeths
Copy link
Contributor

twoeths commented Oct 25, 2022

Describe the bug

this is from a node with novc running v1.2.0

Screen Shot 2022-10-25 at 20 35 43

1025_as_chacha20poly1305_novc.cpuprofile.zip

Expected behavior

with v1.1.1, it almost takes 0% cpu time there

1025_v1.1.1_sm1v.cpuprofile.zip

@wemeetagain
Copy link
Member

Difference is that newer versions of is-ip package uses the super-regex which is way overkill and adds a lot of overhead.

We probably want to revert multiformats/js-multiaddr#260

@wemeetagain
Copy link
Member

See ChainSafe/is-ip#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-high Resolve issues as soon as possible. scope-performance Performance issue and ideas to improve performance.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants