Comment

Comment by xiphias2

It's true for databases, but this usage is closer to how shared libraries are loaded, just with extenal data.

Also just to show how buggy mmap is, it's disabled in SQLite by default for example:

https://www.sqlite.org/mmap.html

Even now the windows version is buggy, but the great thing is that after it's fixed in llama.cpp, the open source community can just copy the solution.

I don't know of many interactive utilities that were known for fast startup time _because_ of the use of mmap, but now we have one, which means many more are coming :)

parent xiphias2 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton