Well I stray away from using memset because it only operates on bytes. Now I could be wrong and it's hard to tell from the profiler (MSVC profiler is hideous) but it seems to me writing DWORDs would be faster than writing BYTEs.