Skip to content

Don't use js.Map in ClassValue when targeting pure Wasm #147

Description

@tanishiking

/* We use a HashMap instead of an IdentityHashMap because the latter is
* implemented in terms of the former anyway, to a HashMap is leaner and
* faster.
*/
private val javaMap: HashMap[Class[_], T] =
if (useJSMap) null
else new HashMap()

Always use Java Map, with linkTimeIf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions