Skip to content

Use Fx Hash to speed up hash maps in the compiler #356

Closed

Description

@Razican

We currently use standard library hash maps (std::collections::HashMap) in Boa to organize all of our internal slots and more. This is not very performant, and Fx Hash has just a bit lower DoS resistant, while providing much better performance.

We do not care about DoS in a compiler, usually, so this should improve our performance greatly, especially during the execution.

Activity

  1. added
    Help Wanted
    Good First Issue
    A-Performance
    on May 1, 2020
  2. Razican commented on May 2, 2020

    @Razican
    MemberAuthor

    I did a bit of profiling with callgrind, and more than 10% of our instructions are related to HashMaps, so I'll try to do this optimisation for a quick win :)

    I will use rustc-hash, that seems to be the maintained version.

  3. self-assigned this
    on May 2, 2020
  4. added this to the v0.8.0 milestone on May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-PerformanceGood First IssueHelp Wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions