diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-07-08 16:36:35 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-07-08 16:36:35 +0000 |
commit | 78ecfc77a164a6686f9ad5b819102aebd30359d8 (patch) | |
tree | 66417e9e936d7df764fb3766d515a6cde2f70e2e /activerecord/lib/active_record/vendor/mysql411.rb | |
parent | 37f90e0f6b39e6d0cf0463e5fe6799aa6a1c922b (diff) | |
download | rails-78ecfc77a164a6686f9ad5b819102aebd30359d8.tar.gz rails-78ecfc77a164a6686f9ad5b819102aebd30359d8.tar.bz2 rails-78ecfc77a164a6686f9ad5b819102aebd30359d8.zip |
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
Diffstat (limited to 'activerecord/lib/active_record/vendor/mysql411.rb')
-rw-r--r-- | activerecord/lib/active_record/vendor/mysql411.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/vendor/mysql411.rb b/activerecord/lib/active_record/vendor/mysql411.rb index 0a94258122..4e02e50757 100644 --- a/activerecord/lib/active_record/vendor/mysql411.rb +++ b/activerecord/lib/active_record/vendor/mysql411.rb @@ -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 |