« Safari 3.0 / Webkit file upload problem with Rails 1.2 | Main | Guerrilla's Guide to Optimizing Rails Applications »

January 31, 2008

Comments

Joe

I noticed your update for rails2.0.2 for the attributes_with_quotes function. I am running rails2.1 and I am getting the same sort of error:

Error: wrong number of arguments (3 for 2)

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2479:in `attributes_with_quotes'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2479:in `update_without_lock'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/locking/optimistic.rb:70:in `update_without_dirty'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/dirty.rb:137:in `update_without_callbacks'
...

roger matching ties

Also got the 3 for 2 error with rails 2.1. Might be because of using the rails 1.x patch?

Gleb Arshinov

2.1 has some/most of these included stock. So, the patches should not be applied to 2.1 as is. If somebody wants to investigate and create appropriate patch set for 2.1, we'll be happy to post it or link to it.

Steve

Do you have any status update on these patches in regard to Rails 2.1? Have all of the above fixes made their way into 2.1 or do some things still require patching ourselves?

Cheers,
Steve

rogerdpack

Looks like if you use ruby enterprise edition on Linux then it links against ptmalloc2 instead of malloc, resulting in a small speed increase, or so they say.
[1]
-=R
http://groups.google.com/group/emm-ruby/browse_thread/thread/1df52f59b266b9b6/0dadab7d1c94e17b?lnk=gst&q=20+slower#0dadab7d1c94e17b

rogerdpack

oops posted this in the wrong blog entry.
YMMV but ruby enterprise edition is said to link against tmalloc2 on Linux for slightly higher speed.

Shikha

Very helpful! Thanks for posting. Though I am new with applying patches and all, will still try this out.

The comments to this entry are closed.

Buzzletter

  • Hear about our new Ruby on Rails performance improvements, hacks, recipes, plugins & more. Enter your email below