Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'scanf' require "benchmark" str = "1 1 a\n" * 10000 TESTS = 10_000 Benchmark.bmbm do |results| str.scanf("%x %x %s\n") do |res| # p res end end
This paste will be private.
From the Design Piracy series on my blog: