Remove 40KB of allocations (4,100 objects) from home feed
(When using dummy data) * to_s(16) allocates a string per character Instead of converting the ord to hex and determining if the hex is over 2 characters long, just see if the ord is over 255. * .match allocates a MatchData instance and sets all sorts of backrefs ($1, $2, etc). match? just returns a boolean.
Showing
Please register or sign in to comment