We're updating the issue view to help you get more done. 

Set literals in REPL end up reified as ArrayMap backed PersistentHashSets.

Description

Entering a set literal in the REPL with more than 8 elements should create a PHM backed set but instead it is array backed.

Example (in REPL):
cljs.user=> (type (.-hash-map #{1 2 3 4 5 6 7 8 9}))
cljs.core/PersistentArrayMap

This means operations such as `get` and `contains?` end up doing long scans and are slower than a user would expect.

Environment

None

Status

Assignee

Unassigned

Reporter

Thomas Mulvaney

Labels

Approval

None

Patch

None

Priority

Minor