[Rails-core] Strange situation: last 3 requests and responses are stored in memory!

2010-05-14 Thread Alexander Dymo
Hey, We recently spotted strange behavior with Rails 2.3. For some reason last 3 requests/responses (and all connected objects - controller, views, controller's instance variables, etc) are always present in memory in _production_ mode. This is how we see the problem. Create an empty Rails app

[Rails-core] More AR performance patches requested for review

2008-02-13 Thread Alexander Dymo
Hi, I can't remember whether I promised more performance patches, but anyways here they are ;) http://dev.rubyonrails.org/ticket/11108 By rewriting string callbacks to symbol callbacks in AR associations we can get significant performance improvement because there's no need to create extra Bin

[Rails-core] Patch #10978 review request

2008-02-01 Thread Alexander Dymo
Hi, I've submitted the patch to speedup AR::Base::attributes_with_quotes (and thus, AR::Base::create and AR::Base::update). The idea is that #attributes_with_quotes clones attributes which not only takes some time, but also allocates quite some memory. My measurements show that my rails appl

[Rails-core] Re: wrong url construction with edge rails under certain conditions

2006-11-29 Thread Alexander Dymo
On Wednesday 29 November 2006 21:09, Jamis Buck wrote: > Don't put things in :params => {}. Just do :sprint => 1 directly. > In other words: >link_to "...", :action => "foo", :sprint => 1 Well, that doesn't quite work. I still have the url without the sprint parameter. I guess that's because :

[Rails-core] wrong url construction with edge rails under certain conditions

2006-11-29 Thread Alexander Dymo
Hi! I've noticed the new behavior that was not seen in stable Rails. Using edge Rails (from today) I have the following problem. Example situation: * user is executing GET request to /sprint/show/205 * there's a route: map.connect 'sprint/show/:sprint', :controller => 'task', :action =>