http://samsaffron.com/archive/2013/11/22/demystifying-the-ruby-gc Ruby 2.1ã®ã¬ãã¼ã¸ã³ã¬ã¯ã¿ (GC) ã«ã¤ãã¦ã¯ããRubyã¨Pythonã®éãããã¬ãã¼ã¸ã³ã¬ã¯ã¿ãç解ãã [ãã®1] [ãã®2] ãã§åãä¸ãã¾ããããä»åã¯ãDiscourseã®Sam Saffronãã¾ã¨ãã¦ããRuby 2.0ã®GCãå©ç¨ããã«ããã£ã¦ã®å¦ã³ãç´¹ä»ãã¾ãã 1) Heaps of heaps MRIã¯ãã¼ãã«RVALUEã¨ãã¦ç¥ããã¦ãããªãã¸ã§ã¯ãããã¤ãåãã¼ãã¯ç´16KBãRVALUEæ§é ä½ã¯ããã·ã³ã®ã¢ã¼ããã¯ãã£ã«ãã£ã¦ç°ãªãéã®ã¡ã¢ãªãæ¶è²»ãããx64ãã·ã³ã§ã¯40 byteãx32ãã·ã³ã§ã¯ãµãã¢ã¼ããã¯ãã£ã¼æ¬¡ç¬¬ã§20 byteãã24 byteãRVALUEã¯ãã¸ã«ã«ãªCæ§é ä½ã§ãRubyã®æ§ã ãªãã¼ã¬ãã«
{{#tags}}- {{label}}
{{/tags}}