Skip to content

docopt argv deserialization takes a very long time #86

@axelchalon

Description

@axelchalon

(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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions