This project is archived and is in readonly mode.
perf: for .last method delay Array#join operation
Reported by Neeraj Singh | September 9th, 2010 @ 09:42 PM | in 3.x
Three performance improvements:
- 
for simple cases like User.last and User.order('name desc').last no need to perform Array#join operation.
 - 
Instead of performing String#blank? do Array#empty?
 - 
no need to create variable relation
 
Attached is patch
Comments and changes to this ticket
- 
        

 - 
        

Aaron Patterson September 27th, 2010 @ 06:51 PM
- State changed from new to committed
 
Applied, thanks!
 
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>