Does a wandering wolf dreams of a wondering, sometimes programming sheep? 8回目の今回は、ファイルアクセスについてです。 ですが、普通にファイルへの読み書きについてお話ししても、そんなに面白味がないと思いました。 そこで、ファイルアクセスの方法のいくつかについて、性能測定をしてみようと思います。 こういう題材について、よくStringBuilderとStringでの性能測定をしているケースは見ますが、ファイルへの書き込みの早さを調べているようなサイトはあまり見ません。 たぶん、あんまり面白くないんですよwww 今回の性能測定での要件は (1)ファイルに10万回"0"を追記で書き込む (2)最初にファイルは存在していない 以上の2点だけです。 では、見ていきましょう。 性能測定の方法は、以下のコードを利用します。 st
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く