I want to make an iostream type class. I would like to find the most efficient way to write a set of characters to the screen.
Ideas:
printf-I dont want the type formating I need to do that myself.
WriteConsole-Read that it was slower than printf? True/False?
*Assembly-Dont know how
other?
*my main concern is if I could find how to do it. I dont have any rush as far as time.
EDIT: for some reason WriteConsole is slower.
I would suggest trying a few methods (you’ve mentioned a couple there) and benchmarking the results. You may be suprised by your results but even if they’re as you expect, you can at least be certain you’re doing the best you can. For the record though, I would be surprised if you find much faster than printf.
The most pragmatic way to code (in my experience) goes along these lines:
It sounds like you’ve not even started designing / coding from your question. Beware premature optimisation…