8000 Investigate using indexmap instead of BTreeMap and Vec where now the .iter().position(...) is used for linear lookup · Issue #4 · mtolmacs/wasm2map · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Investigate using indexmap instead of BTreeMap and Vec where now the .iter().position(...) is used for linear lookup #4
Open
@mtolmacs

Description

@mtolmacs

Background

The indexmap crate is already used by the dependencies of this lib (wasmparser -> object) and would offer a better lookup speed while sparing the extra sorting on the data set, which can offer some speedup in sourcemap generation.

Success

No loss of performance. The usage of indexmap is more idiomatic in this setting, which is a win in itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0