Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] mmap.js #58

Open
Ivshti opened this issue Aug 12, 2015 · 1 comment
Open

[suggestion] mmap.js #58

Ivshti opened this issue Aug 12, 2015 · 1 comment

Comments

@Ivshti
Copy link

Ivshti commented Aug 12, 2015

I know one the vital points of Medea is the fact that it's js only, but perhaps this could still be interesting:

https://github.com/indutny/mmap.js

If one day such an API lands in the node core - or even it doesn't - this is still interesting to experiment with when it comes to data storage systems.

@kevinswiber
Copy link
Member

@Ivshti In the early days, I did an experiment adding mmap support to Medea (for reads only). In the benchmark comparisons, it became very clear where LevelDB was getting its speed boost on reads.

I wish mmap support were in the Node core. I know this goes against a lot of popular opinion, as most folks prefer to keep the core of Node as small as possible. However, mmap would have been stellar in this all-JavaScript library. We run Medea on constrained platforms like the Beaglebone Black and enjoy the rapid speed-to-satisfaction that comes with no compile time on npm install.

For now, I think there'd have to be a medea-mmap module that wraps medea with mmap support. That would be pretty rad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants