maxmind / GeoIP2-node

Node.js API for GeoIP2 webservice client and database reader
https://maxmind.github.io/GeoIP2-node/
Apache License 2.0
224 stars 21 forks source link

fs.openAsBlob experimental support #815

Open gugu opened 1 year ago

gugu commented 1 year ago

Latest node released something like mmap, which can save memory in node apps. It is too early to make a release with it, but it is possible to check possibility and performance of this improvement

oschwald commented 1 year ago

I don't know much about the new API, but could you use it currently with openBuffer?

gugu commented 1 year ago

I can, been it will load all the database in the memory, it is different from behavior of golang library, which uses mmap. I'll do more testing soon