Summary

Different techniques can be used for writing text strings to screen. Table 12.2 showed the results of a speed comparison between the techniques.

These results were generated with a program which can be found in the file 12Source01.cpp.

There are also different techniques for reading and writing binary files. Table 12.9 showed the results of a speed comparison between C- and C++-style techniques using different buffer sizes.

These results were generated with a program which can be found in the file 12Source02.cpp.

This chapter also showed different ways of speeding up text file access by using intelligent parsing functions and loading text as binary blocks. Examples of this are given in the functions and classes in the files 12Source02.cpp, 12Source03.cpp, 12Source03.h, and 12Source04.cpp.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset