{"_id":"rawhash","_rev":"13-2d044076733bc7214cff1132fd5446d8","name":"rawhash","description":"experimental in-memory key:value cache where keys are binary Buffers","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.3":{"name":"rawhash","version":"0.1.3","keywords":["key:value","buffer","store","in-memory","cache"],"homepage":"http://perceptiveconstructs.com","description":"experimental in-memory key:value cache where keys are binary Buffers","main":"rawhash.node","repository":{"type":"git","url":"git://github.com/pconstr/rawhash.git"},"engines":{"node":">=0.4.0 <0.7.0"},"author":{"name":"Carlos Guerreiro","url":"http://perceptiveconstructs.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"scripts":{"test":"./test.js","preinstall":"node-waf clean || (exit 0); node-waf configure build"},"_npmUser":{"name":"pconstr","email":"carlos@perceptiveconstructs.com"},"_id":"rawhash@0.1.3","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"38f6219b98d2af9d3f2801a96edaa1e406adce32","tarball":"https://registry.npmjs.org/rawhash/-/rawhash-0.1.3.tgz","integrity":"sha512-iTdxhM2XLRY8haJOqavn3Zur6CPk7/mKl+QRkfddFaVXAhizGercZFoCmDUH1SG46rWzcDxcZU7PmjA2yoXAug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJ2Nw81u7FUFa8/Ff2uduYrwJW0V/CnjIJiZwALjF8JAiBxrXQS1zbYWoSadnECozc8G6ldWDg72P3pb7/TEshwrw=="}]},"maintainers":[{"name":"pconstr","email":"carlos@perceptiveconstructs.com"}]},"0.1.4":{"name":"rawhash","version":"0.1.4","keywords":["key:value","buffer","store","in-memory","cache"],"homepage":"https://github.com/pconstr/rawhash","description":"experimental in-memory key:value cache where keys are binary Buffers","main":"rawhash.node","repository":{"type":"git","url":"git://github.com/pconstr/rawhash.git"},"engines":{"node":">=0.6.0 <0.7.0"},"author":{"name":"Carlos Guerreiro","url":"http://perceptiveconstructs.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"scripts":{"test":"./test.js","preinstall":"node-waf clean || (exit 0); node-waf configure build"},"_npmUser":{"name":"pconstr","email":"carlos@perceptiveconstructs.com"},"_id":"rawhash@0.1.4","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"e6486d4c66877becf92dbb1fe87a9e5256db9957","tarball":"https://registry.npmjs.org/rawhash/-/rawhash-0.1.4.tgz","integrity":"sha512-fLVB22k/RIlMQ2lEhAwXkIYLh2PrQ8A08Xv1eK30O65CRgFswjaSb+tahNPcNY5k6QQjhBrKVdvSJQjfRIvqaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFPpORskXtp85QyxTXUKKI3qjjb3UTFHNIKawIidyM7rAiAjD3SPmWSW4wqNxU69nfTH0Pxaskz429goQGLxfg6spA=="}]},"maintainers":[{"name":"pconstr","email":"carlos@perceptiveconstructs.com"}]},"0.1.5":{"name":"rawhash","version":"0.1.5","keywords":["key:value","buffer","store","in-memory","cache"],"homepage":"https://github.com/pconstr/rawhash","description":"experimental in-memory key:value cache where keys are binary Buffers","main":"rawhash.node","repository":{"type":"git","url":"git://github.com/pconstr/rawhash.git"},"engines":{"node":">=0.6.0 <0.7.0"},"author":{"name":"Carlos Guerreiro","url":"http://perceptiveconstructs.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"scripts":{"test":"./test.js","preinstall":"node-waf clean || (exit 0); node-waf configure build"},"_npmUser":{"name":"pconstr","email":"carlos@perceptiveconstructs.com"},"_id":"rawhash@0.1.5","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"7f46c5b1bcc3b725e572ca1895f77f6def88bbc3","tarball":"https://registry.npmjs.org/rawhash/-/rawhash-0.1.5.tgz","integrity":"sha512-lsnT6UFV44VGLmqdvOkczLHbxYVZFLCF3dDxBQKWTDRTSfdZt5HaBs/7BV5XZ49ftfVrbrLizpw+MLfA4BMaRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjqQ7AwtgqhGMxm3j+dtHd0lh8KHhrjsN+4fJxk/xIRwIgYvULl257ye0QUJ7dW7KCUt9wP6ydYTzByEI+iMkoJZQ="}]},"maintainers":[{"name":"pconstr","email":"carlos@perceptiveconstructs.com"}]},"0.1.6":{"name":"rawhash","version":"0.1.6","keywords":["key:value","buffer","store","in-memory","cache"],"homepage":"https://github.com/pconstr/rawhash","description":"experimental in-memory key:value cache where keys are binary Buffers","main":"index.js","repository":{"type":"git","url":"https://github.com/pconstr/rawhash"},"engines":{"node":">=0.6.0 <0.9.0"},"author":{"name":"Carlos Guerreiro","url":"http://perceptiveconstructs.com"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"scripts":{"test":"./test.js","install":"node-gyp rebuild"},"gypfile":true,"readme":"rawhash\n-------\n\n[![Build Status](https://secure.travis-ci.org/pconstr/rawhash.png)](http://travis-ci.org/pconstr/rawhash)\n\nAn experimental binary friendly alternative to using a hash as a key:value cache, for [node.js](http://www.nodejs.org).\n\nKeys are binary [Buffer](http://nodejs.org/docs/v0.6.5/api/buffers.html) objects rather than strings. Values are arbitrary objects.\n\n`rawhash` is built on [google-sparsehash](http://code.google.com/p/google-sparsehash) (not included) and [murmurhash3](http://code.google.com/p/smhasher/) (included).\n\nInstall\n-------\n\nget google-sparsehash:\n\n*  on Debian/Ubuntu:  `apt-get install libsparsehash-dev`\n*  on OS X: `brew install google-sparsehash` or `port install google-sparsehash`\n\nor get the latest version from the [google\\-sparsehash project](http://code.google.com/p/google-sparsehash/downloads/list)\n\nthen install rawhash itself:\n\n`npm install rawhash`\n\nUsage\n-----\n\n```javascript\nvar rh = require('rawhash');\nvar k = new Buffer(6);\nvar h = new rh.Sparse();\nh.set(k, {a:1, b:2});\nconsole.log(h.get(k));\nh.each(function(k, v) {\n  console.log(k, v);\n});\nh.del(k);\n```\n\nThere are 3 kinds of hashes:\n\n*  `Sparse` is slower, but uses less memory, uses [sparse\\_hash\\_map<>](http://google-sparsehash.googlecode.com/svn/trunk/doc/sparse_hash_map.html)\n*  `Dense` is faster, but uses more memory, uses [dense\\_hash\\_map<>](http://google-sparsehash.googlecode.com/svn/trunk/doc/dense_hash_map.html)\n*  `Map` is usually somewhere between `Sparse` and `Dense`, uses the STL's [map<>](http://www.sgi.com/tech/stl/Map.html) which is actually ordered and supports range queries - not exposed in `Map`\n\n`Sparse` and `Dense` take an optional argument to seed `murmurhash3`.\n\n```javascript\nvar h = new rh.Dense(42);\n```\n\nPerformance\n-----------\n\nThis is largely TBD\n\nOn a synthetic test (see `./perf/`) with 150K sets, gets and deletes (very similar to `./test.js`) on a low-end MBP, this is how rawhash compares with using a Javascript hash:\n\n<pre>\nSparse 509 ms\nDense  330 ms\nMap    463 ms\n{}     754 ms\n</pre>\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2011 Carlos Guerreiro, [perceptiveconstructs.com](http://perceptiveconstructs.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"rawhash@0.1.6","dist":{"shasum":"4419acc879e5d8a9c1eb51aa5f6e914bd64556b5","tarball":"https://registry.npmjs.org/rawhash/-/rawhash-0.1.6.tgz","integrity":"sha512-CQCvzmAFTA29bcAR0RaQ30No6t7+h2nNj44AEJQPHi3x+XqlJmpQ7cmClJIm2XijR/xlejxUNyump4cZNYCMOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7AmhVATI8/sgYP9gSgUvdizdxEFKixdHG2fzDSmiLYAIhAMQ94cucJVfyxnh3bfwzTqu79W279SeZb4PCPcWSIDye"}]},"maintainers":[{"name":"pconstr","email":"carlos@perceptiveconstructs.com"}]}},"readme":"rawhash\n-------\n\nAn experimental binary friendly alternative to using a hash as a key:value cache, for [node.js](http://www.nodejs.org).\n\nKeys are binary [Buffer](http://nodejs.org/docs/v0.6.5/api/buffers.html) objects rather than strings. Values are arbitrary objects.\n\n`rawhash` is built on [google-sparsehash](http://code.google.com/p/google-sparsehash) (not included) and [murmurhash3](http://code.google.com/p/smhasher/) (included).\n\nInstall\n-------\n\nget google-sparsehash:\n\n*  on Debian/Ubuntu:  `apt-get install libsparsehash-dev`\n*  on OS X: `brew install google-sparsehash` or `port install google-sparsehash`\n\nor get the latest version from the [google\\-sparsehash project](http://code.google.com/p/google-sparsehash/downloads/list)\n\nthen install rawhash itself:\n\n`npm install rawhash`\n\nUsage\n-----\n\n```javascript\nvar rh = require('rawhash');\nvar k = new Buffer(6);\nvar h = new rh.Sparse();\nh.set(k, {a:1, b:2});\nconsole.log(h.get(k));\nh.each(function(k, v) {\n  console.log(k, v);\n});\nh.del(k);\n```\n\nThere are 3 kinds of hashes:\n\n*  `Sparse` is slower, but uses less memory, uses [sparse\\_hash\\_map<>](http://google-sparsehash.googlecode.com/svn/trunk/doc/sparse_hash_map.html)\n*  `Dense` is faster, but uses more memory, uses [dense\\_hash\\_map<>](http://google-sparsehash.googlecode.com/svn/trunk/doc/dense_hash_map.html)\n*  `Map` is usually somewhere between `Sparse` and `Dense`, uses the STL's [map<>](http://www.sgi.com/tech/stl/Map.html) which is actually ordered and supports range queries - not exposed in `Map`\n\n`Sparse` and `Dense` take an optional argument to seed `murmurhash3`.\n\n```javascript\nvar h = new rh.Dense(42);\n```\n\nPerformance\n-----------\n\nThis is largely TBD\n\nOn a synthetic test (see `./perf/`) with 150K sets, gets and deletes (very similar to `./test.js`) on a low-end MBP, this is how rawhash compares with using a Javascript hash:\n\n<pre>\nSparse 509 ms\nDense  330 ms\nMap    463 ms\n{}     754 ms\n</pre>\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2011 Carlos Guerreiro, [perceptiveconstructs.com](http://perceptiveconstructs.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"pconstr","email":"carlos@perceptiveconstructs.com"}],"time":{"modified":"2022-06-25T13:33:36.278Z","created":"2011-12-11T10:44:04.588Z","0.1.3":"2011-12-11T10:44:06.592Z","0.1.4":"2012-04-11T06:53:19.914Z","0.1.5":"2012-04-11T06:59:50.012Z","0.1.6":"2012-07-26T10:59:58.289Z"},"author":{"name":"Carlos Guerreiro","url":"http://perceptiveconstructs.com"},"repository":{"type":"git","url":"https://github.com/pconstr/rawhash"},"users":{"fgribreau":true,"flockonus":true}}