flyerhzm/switch_user

Extremely high object allocation count

Closed this issue · 3 comments

I spotted in my skylight.io dashboard that the number of objects allocated during SwitchUserController#set_current_user is extremely high. 20 times more than I'd consider affordable. 2.5M allocations per request.
2015-07-11-135828_591x122_scrot

@sergey-alekseev what version do you use? I think I have fixed it in version 1.0.0

@flyerhzm thanks for the quick response. I use 0.9.5. I'll check > 1.0.0 and let you know. Seems to be fixed in #72.

Wow, much much much better now. 14.5K instead of 2.5M 👍
Thanks @flyerhzm.
2015-07-11-151424_573x123_scrot