åæ© The Rust Performance Book ã¨ããæ¸ããã®ãè¦ã¤ãã¾ããããããããªããã©ã¼ãã³ã¹æ¹åãã¯ããã¯ãæ¸ããã¦ããããã§ãããå®éã«æ®æ®µæ¸ãã¦ã Rust ã³ã¼ãã®ä¸ã§ä¸ä½ä½ãããã©ã¼ãã³ã¹ã«ä¸ããå½±é¿ã大ããã®ãï¼ã¨ããç¹ãæ°ã«ãªã£ã¦ãã³ããã¼ã¯ãåã£ã¦ã¿ã¾ããã ä»åããã©ã¼ãã³ã¹ãè¨æ¸¬ããããã°ã©ã ã¯ããããããç»åï¼1600px x 1200pxï¼ãã°ã¬ã¼ã¹ã±ã¼ã«ã«å¤æããå¦çã§ããI/O ã®ããã©ã¼ãã³ã¹ã¯ç¡è¦ãã¾ãã&[u8]ãã RGB ããããã 1byte ãã¤ï¼åè¨ 3bytesï¼åã£ã¦ãã¦ããããã°ã¬ã¼ã¹ã±ã¼ã«ã® 1byte ã«å¤æãã¦Vec<u8>ã«ããæéãè¨æ¸¬ãã¾ããã¤ã¡ã¼ã¸ã¨ãã¦ã¯ä¸è¨ã®ãããªé¢æ°ã§ãã // source ã ã«ã©ã¼ã®ããããããç»åã®ãã¼ã¿ fn sample(source: &[u8]) -> Result<Ve
{{#tags}}- {{label}}
{{/tags}}