Optimize records equality

Description

Per the example in https://tech.redplanetlabs.com/2020/09/02/clojure-faster/, seems like the equals/equiv in defrecords could probably be better. Right now it just calls out to APersistentMap/mapEquals, which seqs through one of the maps' keys to compare. With defrecord, seems like we could optimize the field checks since those are known.

Environment

None

Assignee

Unassigned

Reporter

Alex Miller

Approval

Triaged

Priority

Major

Affects versions