I'm relatively new to Ruby, and when I was reading this post
http://tmm1.net/ruby21-profiling/ I came across something I did not
understand.

Towards the end he explains that he was able to decrease
method calls to present? by 40% just by making this subtle change:

def owner
-   @owner ||= User.find_by_login(params[:user_id]) if
params[:user_id].present?
+   @owner ||= (User.find_by_login(params[:user_id]) if
params[:user_id].present?)
end

What's going on here? How are these executed differently?

-- 
Posted via http://www.ruby-forum.com/.