libxml-rubyã§ã¡ã¢ãªãªã¼ã¯ãã¦ããæ°ããã
libxml-rubyã§ã¡ã¢ãªä½¿ç¨éãããããã¨å¢ãã¦ããã
以ä¸ã®ãããªã³ã¼ãã使ãæ¹ã®ééãã¨ãã«ã¤ãã¦ããã³ãæ±ãã
require 'xml/libxml' doc = XML::Document.new() doc.root = XML::Node.new('root') root = doc.root root << child = XML::Node.new('child') (1..100000).each {|i| a = XML::Node.new('dummy') child.prev = a a.remove! GC.start }
Hpricotã¯ã¡ã¢ãªãªã¼ã¯ããã®ã§libxml-rubyã«ä¹ãæãããã ãã©ã
ä¸ã®ä¸ãããã楽ã§ããããã«ã¯åºæ¥ã¦ãªãã®ãâ¦
ææ¥ã¡ããã¨è¿½ããã
[追è¨]ä¿®æ£ããã¾ããã
ä¿®æ£ãã¦ãããã¾ãã(rev. 647) ãåç¾ã³ã¼ãã¨ãä¸å®å ¨ã§ãããããããããããã¨ãã¯ãåããæ©ãã