Mail Archives: djgpp/1998/05/11/05:16:12
On Sun, 10 May 1998, Bruno Barberi Gnecco wrote:
> Would it be better to output char by char using putc (because the output is made
> of string, generated a char a time) instead of fprintf("%s")?
Yes, certainly. If you generate the output a character at a time,
fprintf is a lot of overkill for you, as the profile shows.
> Or would be fast way bufferize it?
putc uses buffered I/O as well. That is, nothing is written to the
file/device until you fill a buffer with characters, or call fflush
explicitly.
> Is there a faster assembler function to substitute fprintf?
IMHO it would be madness to write the guts of _doprint in assembly. And
I don't believe it would be much faster anyway.
- Raw text -