Re: Ruby bindings' excessive memory usage
From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2005-12-13 14:52:43 CET
Hi,
In <B918BEC2-A67F-4E82-AA64-4AFFB166A128@site5.com>
> Hi all - I've discovered what looks to be a problem with the SVN ruby
This problem is caused because Svn::Client::Context#add (and
So far, this problem can be avoided by writing like the
100.times do |i|
instead of the following:
ctx = Svn::Client::Context.new
I will fix this problem by making sub-pool.
> Attached is some code to reproduce the problem - it creates 4000
In using the 'svn' command case(*), it seems that memory
Regards,
-- kou -- (*) #!/usr/bin/env ruby repos = "/tmp/repos" wc = "/tmp/wc" `rm -rf #{repos}` `rm -rf #{wc}` `svnadmin create #{repos}` `svn co file://#{repos} #{wc}` Dir.chdir(wc) files = [] 1.upto(4000) do |i| i = i.to_s File.open(i, 'w') do |f| f.puts(i * 100) end files << i end `svn add #{files.join(" ")}` --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Tue Dec 13 14:55:37 2005 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.