Improve perf of cljs.compiler/distinct-keys?

Description

cljs.compiler/distinct-keys? consumes a significant portion of time in the compilation pipeline.

For example, when compiling the Coal Mine corpus (https://github.com/mfikes/coal-mine), and, in a flame graph, zooming in on cljs/compiler$emit.invoke (which is itself largely largely associated with compilation, as opposed to, say analysis), you can see that cljs.compiler/distinct-keys? consumes about a full third of the time for that tower.

Environment

None

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major
Configure