You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently been troubleshooting memory bloat in my app and discovered that views that included the country_select method in forms were causing high object allocation--significantly higher than when I just manually replaced the method with a large select tag.
Here's an example form (new devise registration) and how I use country_select
I have recently been troubleshooting memory bloat in my app and discovered that views that included the country_select method in forms were causing high object allocation--significantly higher than when I just manually replaced the method with a large select tag.
Here's an example form (new devise registration) and how I use country_select
The memory trace in Skylight shows the following when this page is loaded:
When I replace the method with a select tag like this:
I get avg. allocations on the order of 15,000.
Do you know what accounts for this? It happens whether or not I use the custom format and with country_select version 8 or 9.
The text was updated successfully, but these errors were encountered: