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:
parent
37f90e0f6b
commit
78ecfc77a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue