Skip to content

Use FxHashMap? #145

@bdarcus

Description

@bdarcus

This is much faster than the default hasher, and I don't think we're concerned about DOS attacks with this (if we are, could consider AHashMap)?

https://docs.rs/fxhash/latest/fxhash/type.FxHashMap.html

// use std::collections::HashMap;
use rustc_hash::{FxHashMap as HashMap};

If so, add linter:

https://nnethercote.github.io/perf-book/linting.html#disallowing-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions