Thursday, August 25, 2005

Which is faster, OutputDebugStringA or OutputDebugStringW?

One of the other developers on my team writes...

"I always thought that the Unicode version of kernel APIs (the ones ending with "W") were always faster than their ASCII counterpart (the "A" version)...not so with OutputDebugStringW! I just found out that the Unicode version converts its input buffer to ASCII and then calls the "A" version of the function. Ouch!"

No comments: