From chris at octopod.info Wed Apr 18 08:32:59 2007 From: chris at octopod.info (Chris McGrath) Date: Wed, 18 Apr 2007 13:32:59 +0100 Subject: [libxml-devel] Memory leaks Message-ID: Hi there, Just been looking into using libxml-ruby to generate some largish feeds for our clients (5000 records in a feed). It's obviously faster than XmlBuilder, but I'm running into the same problem as reported in [1]. Has there been any progress on this? Is there anything I can do to solve it? Thanks, Chris [1] http://rubyforge.org/tracker/index.php? func=detail&aid=7945&group_id=494&atid=1971 From stefan.lauer at hps-technologies.de Wed Apr 18 10:13:48 2007 From: stefan.lauer at hps-technologies.de (stefan lauer) Date: Wed, 18 Apr 2007 16:13:48 +0200 Subject: [libxml-devel] Memory leaks In-Reply-To: References: Message-ID: Hi, I workaround it by read the file in with the native Rubyclass File. I do it on this way: file = File.new(@xmlfile) parser.io = file @doc = parser.parse This helps for me. > Hi there, > > Just been looking into using libxml-ruby to generate some largish > feeds for our clients (5000 records in a feed). It's obviously faster > than XmlBuilder, but I'm running into the same problem as reported in > [1]. > > Has there been any progress on this? Is there anything I can do to > solve it? > > Thanks, > > Chris > > > [1] http://rubyforge.org/tracker/index.php? > func=detail&aid=7945&group_id=494&atid=1971 > _______________________________________________ > libxml-devel mailing list > libxml-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel From chris at octopod.info Wed Apr 18 11:37:50 2007 From: chris at octopod.info (Chris McGrath) Date: Wed, 18 Apr 2007 16:37:50 +0100 Subject: [libxml-devel] Memory leaks In-Reply-To: References: Message-ID: On 18 Apr 2007, at 15:13, stefan lauer wrote: > Hi, > > I workaround it by read the file in with the native Rubyclass File. > > I do it on this way: > > file = File.new(@xmlfile) > parser.io = file > @doc = parser.parse > > This helps for me. I'm using it to create XML though, not read it in. I'll remember your tip though, thanks :) Cheers, Chris