2011/09/26

エクセルファイルのバッチ出力 その4 (Excel file processing, Part 4)

エクセルへのデータ転送が高速化された結果、ファイルのオープンおよび保存にかかる時間が無視できなくなりました。
参考まで、前回までの検証で使用したテンプレート(Fat file)に設定されていたスパークラインやコメントを取り除き、軽量化したテンプレート(Simple file)での計測結果は以下の通りです。
Figure 9: Light template file is processed faster.

1ファイルあたりの所要時間は0.30秒から0.22秒に短縮されています。テンプレートの軽量化には一定の効果(今回は約30%)があることが確認できます。


[summary]
Now the major events are save and open file.  To reduce these events, I removed the Spark Line and cell comments on the template sheet.
The results are shown in Figure 9.  Fat file is the ordinary template file (sample template of previous post).  Simple file is the template file without Spark Line and cell comments.
Total time is reduced from 0.30 sec to 0.22 sec (per file).

Complicated templates are not better than simple ones always.

0 件のコメント:

コメントを投稿