2013.10.14 è¿½è¨ @kazuho ãããããææããã ãã¾ããï¼ mmapã®ã»ããreadããéãã¨ããè¿·ä¿¡ã«ã¤ã㦠- kazuhoã®ã¡ã¢ç½®ãå ´ - é·ãã¿ã¤ãã«â¦ã ããªãã æ¸ããgorepã£ã¦ããæ¤ç´¢ãã¼ã«ãããã¡ãã£ã¨éãããããªã¨æã£ã¦ãã¡ã¤ã«èªã¿è¾¼ã¿ã®é¨åãmmap()ã§ç½®ãæããæ¤è¨ä¸ã(ã¡ãã£ã±ãã®agãmmap()ã使ã£ã¦ãã) mmap()ã§ã®é«éå確èªç¨ã«Cã¨Goã§ç°¡åãªã³ã¼ãæ¸ãã¦å®é¨ãã¦ãããã以ä¸ã®ãã¨ãããã£ãã ãã¡ã¤ã«èªã¿è¾¼ã¿ãmmap()ã«ç½®ãæããã¨é«éåãæããã Goã®ã³ã³ãã¤ã©ã®æé©åã¯ãªããªãåªç§ã§ãCã®GCCãã«ããããéããªããã¨ããããã LLVM-Clangã¯å端ãããªã å¦çé度æ¯è¼ã®æºå æ¯è¼ç¨ã«æ¸ããã®ã¯ãopen()/read()ã¨ãopen()/mmap()ãããã¦fopen()/fread()ãè¡ãCã¨Goã®ã³ã¼ã
{{#tags}}- {{label}}
{{/tags}}