UNPKG

foop

Version:

interfaces that describe their intentions.

111 lines (90 loc) 4.65 kB
// fastest object OR typed array hash OR hashmap OR keyval js // // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Indexed_collections // // http://www.mojavelinux.com/articles/javascript_hashes.html // https://leftshift.io/4-javascript-optimisations-you-should-know // http://www.html5gamedevs.com/topic/1188-javascript-hashmap-with-fast-keyvalues-iteration/ // totally wrong // https://davidwalsh.name/object-array-index // // --- // http://www.shamasis.net/2009/09/fast-algorithm-to-find-unique-items-in-javascript-array/ // test perf of wrapping methods instead and see gzip size with .call probably better // really good // http://jayconrod.com/posts/52/a-tour-of-v8-object-representation // aight // https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary // https://stackoverflow.com/questions/26264956/convert-object-array-to-hash-map-indexed-by-an-attribute-value-of-the-object // https://stackoverflow.com/questions/13328658/are-the-advantages-of-typed-arrays-in-javascript-is-that-they-work-the-same-or-s // https://stackoverflow.com/questions/2002923/javascript-using-integer-as-key-in-associative-array // !!!! // https://developer.mozilla.org/en-US/Add-ons/Code_snippets/StringView // https://github.com/madmurphy/stringview.js // http://bajiecc.cc/questions/1511775/trying-to-get-asm-js-to-return-a-typed-array // http://oocms.org/question/1200278/are-the-advantages-of-typed-arrays-in-javascript-is-that-they-work-the-same-or-s // ----- SUPER LOTS OF CODE --- // https://github.com/WebKit/webkit/tree/master/JSTests/microbenchmarks // general perf // https://github.com/v8/v8/wiki/Design%20Elements // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/ //-> REMOXING CLASSES http://jsperf.com/prototypal-performance/54 // gives me an idea to add `hasOwnProperty` method on chainable // so when it is called, then I can check the `store` // http://ryanmorr.com/true-hash-maps-in-javascript/ // Google SoundScript: faster OOP for JavaScript // http://2ality.com/2015/02/soundscript.html // https://v8project.blogspot.ca/ // https://github.com/rwaldron/tc39-notes/blob/master/es6/2015-01/JSExperimentalDirections.pdf // https://github.com/RefineryJS/SaneScript // https://www.reddit.com/r/javascript/comments/2uzueu/new_js_experiments_by_the_google_v8_team/ // https://github.com/rwaldron/tc39-notes/blob/master/es6/2015-01/JSExperimentalDirections.pdf // data structures! // interesting methods for chainable - best ones shit // http://www.timdown.co.uk/jshashtable/ // http://www.collectionsjs.com/fast-set // https://thestorefront.github.io/DataCollection.js/ // https://github.com/pluma0/ordered-hashmap // http://www.i-programmer.info/programming/javascript/1441-javascript-data-structures-the-associative-array.html // http://www.objis.com/formationextjs/lib/extjs-4.0.0/docs/api/Ext.util.HashMap.html // https://github.com/d3/d3-collection // https://mobx.js.org/refguide/map.html // holy moley // https://www.scala-js.org/doc/sjs-for-js/es6-to-scala-part2.html // https://ariya.io/2013/07/sequences-using-javascript-array // https://forums.anandtech.com/threads/constructors-controllers-instantiation-and-hashes-in-js-and-angularjs.2371137/ // http://cljs.info/cheatsheet/ // https://github.com/emberjs/ember.js/blob/v2.14.1/packages/ember-metal/lib/map.js#L219 // // kind of interesting, lame version, could be helpful with graphql? // http://www.samtobia.com/?tag=schematypes // https://github.com/balderdashy/waterline-schema/blob/master/lib/waterline-schema/schema.js // looks solid, but rather large // https://takuyaa.github.io/kuromoji.js/jsdoc/TokenInfoDictionary.js.html // v8 // https://chromium.googlesource.com/external/v8/+/master/src/ // // // name for map/set: collection // https://chromium.googlesource.com/external/v8/+/master/src/collection.js // trie // https://johnresig.com/blog/javascript-trie-performance-analysis/ // utils, IZZES // https://github.com/riot/riot/blob/master/riot%2Bcompiler.js#L52 // https://github.com/wycats/handlebars.js/blob/master/lib/handlebars/utils.js // https://github.com/emberjs/ember.js/tree/master/packages/ember-utils/lib // // // meh // https://github.com/krakenjs/kraken-js // https://github.com/wycats/handlebars.js/ // hash fns // http://algs4.cs.princeton.edu/34hash/ // http://robl.co/implement-your-own-hashmap/ // // info? // https://codereview.stackexchange.com/questions/57614/convert-object-array-to-hash-map-using-lodash // off-code-topic, google code interview // https://www.interviewcake.com/concept/java/hash-map // also off topic, java // https://haxe.org/manual/std-Map.html