Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ImaGraftedBranch

Haha.


12 posted on 04/02/2013 3:27:44 PM PDT by 2 Kool 2 Be 4-Gotten
[ Post Reply | Private Reply | To 11 | View Replies ]


To: 2 Kool 2 Be 4-Gotten

For some made up scenario you might have some code that does audio or video encoding or decoding and in the inner, inner loop you might have a couple to ten lines of assembly that leverage the SIMD instructions of whatever chip you’re running on. Those few lines won’t amount to much in terms of the total number of lines of code for your program but they may mean everything in terms of how well and how fast the program executes.

The fallacy of course is static LOC count vs. dynamic LOC. Static counts the LOC in the source file. Dynamic counts them in terms of how often they are executed. An inner, inner loop may have a few lines that are basically always being called.


13 posted on 04/02/2013 3:31:32 PM PDT by 2 Kool 2 Be 4-Gotten
[ Post Reply | Private Reply | To 12 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson