mori
GitHub describes it as ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript. The repository metadata lists Clojure as its primary language. This article stays within the project description and details documented in the GitHub repository README.
swannodette/mori: mori
GitHub describes it as ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript. The repository metadata lists Clojure as its primary language. This article stays within the project description and details documented in the GitHub repository README.
Repository scope
GitHub describes it as ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript. The repository metadata lists Clojure as its primary language. The README describes the project this way: A simple bridge to ClojureScript's persistent data structures and supporting APIs for vanilla JavaScript. Pull requests welcome.
Faster
The README section "Faster" states: Mori is considerably faster across the board thanks to recent enhancements to the ClojureScript compiler. For users who would like to benchmark their immutable data structure implementations against Mori, Mori now exposes direct arity invokes which eliminates previous calling overheads from arity dispatching. See for more information.
Faster
The README section "Faster" states: Mori hash maps now default to ClojureScript ArrayMap s that are automatically promoted to PersistentHashMap s as needed. ArrayMap s deliver considerably better performance at small sizes and when simple keys are at play. For example a Mori hash map with less than or equal to eight keys can now be built nearly an order of magnitude faster than Immutable.js 3.6.2 Map s.
More ES6
The README section "More ES6" states: All Mori collections support ES6 iteration via foo[Symbol.iterator] or foo["@@iterator"] .
Editorial conclusion
The repository README is the source for this review. It does not replace a local installation or an independent test.
Community notes