Data-Liberation-Front / csvlint.rb

The gem behind http://csvlint.io
MIT License
283 stars 86 forks source link

Avoid using #blank? if unnecessary #120

Closed jpmckinney closed 9 years ago

jpmckinney commented 9 years ago

Rails' #blank? method is very slow compared to just checking nil? and empty?.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 95.91% when pulling 16aafbeb1bc4e997fc7d2a962e1a7fbcacc8f285 on jpmckinney:speed_blank into 08ab3af84a892ab3eed054d8f60da1926e5ec67f on theodi:master.