Click here to Skip to main content
15,891,835 members
Articles / Programming Languages / C++

Quick set a Byte Variable in a 3D struct

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
21 Nov 2012CPOL 0  
With nv3's suggested 'flat approach', using pointers I obtained a somewhat surprising result (about 3x speed improvement):register int i, j, k; LARGE_INTEGER t[4]; QueryPerformanceCounter(&t[0]); //-> 3 loops for (i=0; i<128; i++) { for (j=0; j<5; j++) { ...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 21-Nov-12 23:42 Available CPallini
Updates in content. 11 changes had been made.
1 No 21-Nov-12 23:42 Available CPallini

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Biotecnica Instruments S.p.A.
Italy Italy




Debugging? Klingons do not debug. Our software does not coddle the weak. Bugs are good for building character in the user.
-- The Klingon programmer



Beelzebub for his friends [^].





Comments and Discussions