タグ

速度に関するMASSIのブックマーク (2)

  • TechCrunch

    When X (formerly Twitter) launched paid subscription verification, Mistress Rouge, a professional dominatrix, hoped that it would help her advertise to new clients. But paying for the service didn’t

    TechCrunch
    MASSI
    MASSI 2011/08/10
    SSD で 1GBps か... PentiumIII 時代の主記憶 (PC133) 並じゃないか。あと8B/10B無視してるのちょっと気になる。
  • float vs. double

    唐突ですが, 下記のコードを実行したとき速いのはどちらでしょう. また演算結果はどうなると予想されますか. double calcd(int n) { double ret = 0; for (int i = 1; i < n; i++) { ret += 1 / double(i); } return ret; } float calcf(int n) { float ret = 0; for (int i = 1; i < n; i++) { ret += 1 / float(i); } return ret; } int main() { printf("calcf=%.15f\n", calcf(100000000)); printf("calcd=%.15f\n", calcd(100000000)); } float型は遅い? いえ

  • 1