Please sign in to comment.
Use symbols instead of strings
ActiveSupport::Concern is used all over Rails This PR will only create 3 new objects as keys are never recreated and are not subject to garbage collection. The strings were being uniquely created and garbage collected. I don't have any performance numbers but this should be better than all of the GC.
- Loading branch information...
Showing with 6 additions and 6 deletions.