This project is archived and is in readonly mode.

#5596 ✓committed
Neeraj Singh

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

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=""></a>