Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Refactored and reduced method calls on Engine.find

#6529

Hi, Engine.path is expanding the same path passed as an argument every time it compares it with the engines paths. I changed the code to expand it only once and then use the value in the comparisons.

Reported by Diego Carrion · March 5th, 2011 @ 05:06 AM

State: committed
Milestone: none
Assigned to: Santiago Pastorino Santiago Pastorino
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to committed

    (from [c7cfdd01c114e103508c435d5e6cfee0703e2e1d]) refactored Engine.#find by giving an explicit name to a variable and reducing calls

    [#6529 Refactored and reduced method calls on Engine.find state:committed]

    Signed-off-by: Santiago Pastorino santiago@wyeworks.com
    https://github.com/rails/rails/commit/c7cfdd01c114e103508c435d5e6cf...

    March 9th, 2011 @ 02:29 AM