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.

[Patch] OrderedHash does not sync it's @keys after mutating operations.

#1559

Here's a patch which fixes this for #delete_if, #reject!, and #reject.

This probably holds true for any other mutating method, I haven't gone through them all except these which I needed.

If the recent change to OrderedHash, to subclass Hash, was a speed improvement; would it still be so after fixing all mutating methods like these?

Reported by Eloy Duran · December 11th, 2008 @ 01:19 PM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Michael Koziarski
    Michael Koziarski
    • State changed from new to resolved

    Applied, cheers!

    December 11th, 2008 @ 01:34 PM

  2. Frederick Cheung
    Frederick Cheung

    Speed things up a little and cover some of the other mutators

    December 11th, 2008 @ 03:22 PM

  3. Frederick Cheung
    Frederick Cheung
    • State changed from resolved to open

    December 12th, 2008 @ 10:20 AM

  4. Repository
    Repository
    • State changed from open to committed

    (from [6eed6cf5c6db0dbf96c1c2756eb946f54277a0cb]) Make delete_if/reject faster and fix other mutators

    [#1559 [Patch] OrderedHash does not sync it's @keys after mutating operations. state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    December 12th, 2008 @ 06:19 PM

  5. Repository
    Repository

    (from [4dcd8f01afe5800baa67bbdf72832afb0d627755]) Make delete_if/reject faster and fix other mutators

    [#1559 [Patch] OrderedHash does not sync it's @keys after mutating operations. state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    December 15th, 2008 @ 02:38 PM