r2933@asus: jeremy | 2005-07-08 14:22:58 -0700

Don't call GC.start in Mysql::Result#free.  Performance killer.  This should go upstream..


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2005-07-08 16:36:35 +00:00
parent 37f90e0f6b
commit 78ecfc77a1
1 changed files with 9 additions and 0 deletions

View File

@ -303,4 +303,13 @@ class Mysql
end
self
end
# Get rid of GC.start in #free.
class Result
def free
@handle.skip_result
@handle = @fields = @data = nil
end
end
end