Skip to content

Speed up HashMap by avoiding invokeinterface on hot paths #389

Closed
@retronym

Description

@retronym

Consider copy/paste inheritance of HashTable.{improve,index,findOrAddEntry,addEntry0,findEntry) from trait HashTable into class HashMap to avoid invokeinterface.

I noticed these are reported heavily in the profiler as callers of itable stubs. See https://wiki.openjdk.java.net/display/HotSpot/InterfaceCalls

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions