サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
TGS2024
greyblake.com
I did some benchmarks to find out which alternatives to write code work faster. I wanna share it with you. All benchmarks are made against ruby 1.9.3p194 MRI. Do not use exceptions for a control flow The next example is pretty stupid but it shows how exceptions slow against conditional statements. require 'benchmark' class Obj def with_condition respond_to?(:mythical_method) ? self.mythical_method
このページを最初にブックマークしてみませんか?
『greyblake.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く