Mr Flibble wrote:
> > I recently released the open source library "cpp-mmf":
> >
https://github.com/carlomilanesi/cpp-mmf
> >
> > It encapsulates memory-mapped files for both POSIX and Windows operating systems.
>
> Does the Boost alternative support more than just POSIX and Windows?
I think not.
However, if you know of other operating systems supporting memory-mapped files, and for which there is a significant number of C++ programmers needing them, tell me.
> Compilation time is hardly an important consideration when choosing a
> library.
I usually take compilation time into account.
If you compile once a day, and your compilation takes less than 5 seconds, it is irrelevant.
But if you compile once ever ten minutes, and your compilation takes 5 minutes,
it is very relevant.
> > * It generates smaller code. Using Linux, it generates a stripped program that is less than a third of the one generated using Boost.
>
> A third less isn't even an order of magnitude.
It is "less than a third" (with Clang for Linux), not "a third less".
A small program compiled with GCC or Clang, creates executable programs of the following sizes in byes:
cpp-mmf Boost
gcc for Windows 11264 24576
gcc for Linux 9836 26292
Clang for Linux 8572 29224
I wasn't able to compile it with Visual C++ and Boost.
> > * It has a better tutorial.
>
> Why don't you contribute to a better Boost tutorial?
Because I don't like it.
Why don't you contribute to cpp-mmf by trying to use it, and telling me what you don't like of it?
--
Carlo Milanesi