jekyll / jekyll-avatar

A Jekyll plugin for rendering GitHub avatars
MIT License
89 stars 9 forks source link

Compute :srcset with an array of integer strings #43

Closed ashmaroli closed 4 years ago

ashmaroli commented 4 years ago

In comparison to converting an integer to string, converting number-like strings to an integer is more economical memory-allocation-wise because Ruby integers are fixed entities.

In other words, while 3.to_s.object_id will always be different, "3".to_i.object_id will always be the same.