Permalink
Browse files

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
  • Loading branch information...
1 parent 37f90e0 commit 78ecfc77a164a6686f9ad5b819102aebd30359d8 @jeremy jeremy committed Jul 8, 2005
Showing with 9 additions and 0 deletions.
  1. +9 −0 activerecord/lib/active_record/vendor/mysql411.rb
View
9 activerecord/lib/active_record/vendor/mysql411.rb
@@ -303,4 +303,13 @@ def read_query_result_41
end
self
end
+
+
+ # Get rid of GC.start in #free.
+ class Result
+ def free
+ @handle.skip_result
+ @handle = @fields = @data = nil
+ end
+ end
end

0 comments on commit 78ecfc7

Please sign in to comment.