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

docopt argv deserialization takes a very long time #86

Closed
axelchalon opened this issue Feb 27, 2018 · 4 comments
Closed

docopt argv deserialization takes a very long time #86

axelchalon opened this issue Feb 27, 2018 · 4 comments

Comments

@axelchalon
Copy link
Contributor

axelchalon commented Feb 27, 2018

(via https://github.com/paritytech/ethabi/issues/79#issuecomment-368421077)

https://github.com/paritytech/ethabi/blob/master/cli/src/main.rs#L81
.deserialize() takes abnormally long to compute; computing time grows exponentially with number of arguments

ethabi encode params --lenient -v uint256 1 -v uint256 1 -v uint256 1 -v uint256 1

# hangs a couple seconds on .deserialize()
ethabi encode params --lenient -v uint256 1 -v uint256 1 -v uint256 1 -v uint256 1 -v uint256 1

# hangs with 100% cpu and a lot of memory usage for at least several minutes (had to kill the process)
@debris
Copy link
Collaborator

debris commented Mar 1, 2018

I believe this should be reported upstream in docopt repo

@debris
Copy link
Collaborator

debris commented Mar 1, 2018

might be related to docopt/docopt.rs#185

@debris
Copy link
Collaborator

debris commented Mar 1, 2018

and docopt/docopt.rs#207

@dvdplm
Copy link
Contributor

dvdplm commented Jan 9, 2020

docopt has been replaced by structopt in v10 and #164. Closing.

@dvdplm dvdplm closed this as completed Jan 9, 2020
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

No branches or pull requests

3 participants