View Single Post
Old May 29th, 2006, 6:59 AM   #1
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
Arrow Which is faster?

Well...I know I am good at making stupid and "obvious" posts and I love making them. This is probably one of them.


Well, which is faster?

Old fashoned C "memcopy" and StrCpyN etc which probably uses its superb algorithems or whatever.

Or

inline assembly: Unaligned "rep movsb" copying in 32 bit pentium 3 or whatever

Tutorials and docs I read totally scares me...they go like "500 * ecx * extra couple of thousand for unaligned * couple of hundreds more if its "byte" " or something clock cycles(yeah exaggerated)
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote