Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require "osx/cocoa" require "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist" require "benchmark" Benchmark.bm(100) do |x| x.report("rubycocoa:") { OSX::NSDictionary.dictionaryWithContentsOfFile("finder.plist") } x.report("textmate:") { OSX::PropertyList.load("finder.plist") } end ## user system total real rubycocoa: 0.010000 0.000000 0.010000 ( 0.009897) textmate: 0.000000 0.000000 0.000000 ( 0.000354)
This paste will be private.
From the Design Piracy series on my blog: