Monthly Archives: November 2006

Creating Text Files – Downloads

The code (create_text_file.zip) can now be found in my SkyDrive public folder. http://cid-ae9441bae91063cc.skydrive.live.com/embedrow.aspx/Public   To build the C++ samples, you’ll need to create project files using MPC. The C++/CLI and VB.NET projects use Visual Studio 2005 (The free Express edition will … Continue reading

Posted in Code Performance | Leave a comment

Creating Text Files – Coming Soon…

I forgot to include the source code in my previous posts, but now I can’t figure out an easy way to do it. Why would my blogging server allow posting pictures, but not other files? It looks like I’m going to … Continue reading

Posted in Uncategorized | Leave a comment

Creating Text Files – Conclusion

SCSI Blues On the one SCSI machine, the write speed was 2-5MB/s regardless of implementation or configuration options if WriteThrough was enabled. This probably just means that the drive does a more thorough job of honoring the WriteThrough setting. However … Continue reading

Posted in Code Performance | Leave a comment

Creating Text Files – Other Languages and Platforms

Some of the C++ programs above (fast_ofstream in particular) were fairly difficult to implement, and I wanted to see what could be achieved using a more rapid development tool. So far I’ve implemented the test in Visual Basic 2005, and … Continue reading

Posted in Code Performance | 2 Comments

Creating Text Files – fast_ofstream and Custom FileStream

fast_ofstream As we saw with the analysis of the ofstream program we can achieve close to optimal throughput, but not with advanced features such as defragmenting that we require. One solution that doesn’t involve starting from scratch is to write … Continue reading

Posted in Code Performance | 2 Comments

Creating Text Files – Optimizing std::ofstream

Where to start? Just to make sure I was on the right track, I decided to write a quick proof-of-concept Windows program to verify that I could come close to the desired performance. This program works by creating a 64K … Continue reading

Posted in Code Performance | 12 Comments

Performance Quiz – Creating Text Files

I have an interesting programming challenge. Write a program to create a sample text file of a specified size in megabytes. The program should write out as many lines as possible of the format “[tabs]All work and no play makes … Continue reading

Posted in Code Performance | 2 Comments