mmap file performance

kdevel kdevel at vogtner.de
Wed Apr 17 21:01:31 UTC 2024


On Thursday, 11 April 2024 at 16:23:44 UTC, Andy Valencia wrote:
> [...]
> void
> main(in string[] argv)
        ^^

What if you want to use

    bool memorymapped;
    getopt (argv, "m", &memorymapped);

inside main? [1]

Have you tried using "rm" [2] instead of "r" as stdioOpenmode 
under Linux
for a "no code" method of employing mmap for reading?

[1] const main args? [2011]
https://forum.dlang.org/post/mailman.2277.1313189911.14074.digitalmars-d-learn@puremagic.com

[2] section "NOTES" in fopen(3)
https://man7.org/linux/man-pages/man3/fopen.3.html


More information about the Digitalmars-d-learn mailing list