Click here to Skip to main content
15,901,505 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Hello everyone Pin
ZurdoDev13-Jul-18 1:41
professionalZurdoDev13-Jul-18 1:41 
GeneralRe: Hello everyone Pin
Rage13-Jul-18 3:01
professionalRage13-Jul-18 3:01 
GeneralRe: Hello everyone Pin
Mark Parity12-Jul-18 22:25
Mark Parity12-Jul-18 22:25 
GeneralDoes This Carbon Unit Thinks Like A Silicon Unit? Pin
David A. Gray12-Jul-18 10:10
David A. Gray12-Jul-18 10:10 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
Nelek12-Jul-18 20:31
protectorNelek12-Jul-18 20:31 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
CodeWraith12-Jul-18 22:23
CodeWraith12-Jul-18 22:23 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
Nelek12-Jul-18 22:30
protectorNelek12-Jul-18 22:30 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
David A. Gray13-Jul-18 6:54
David A. Gray13-Jul-18 6:54 
Nelek wrote:
High level code... 4 lines. Compile: 34 Kb translated code, cycle time increased by 10 to 15 ms every time the function was being called.


Equally astounding about that 34 KB is the proportion of it that is composed of code pulled into the translation unit from the runtime library and other overhead, such as linkage editor fixup tables.

Nelek wrote:
Cup of coffee, earphones, music, "do not disturb" sign on my desk, 2 hours work = code written in LAD? (english name for german AWL) which is kind of similar to assembly. Function 1,7 kb code, cycle time not visibly affected by the use of the function (meaning: impact < 0,5ms).


For code that runs often, that much of a performance improvement absolutely justifies implementing in assembly language. The skill is in divining which bits warrant the extra effort.

Nelek wrote:
High level languages are nice and can perform a real huge amount of things, but sometimes it is like trying to kill a fly with a bazooka.


Indeed. However, my point in explaining about the function that returned a structure is that using the disassembly view in the debugger enabled me to identify a simple, mostly transparent change that eliminated a memory copy that happened every time the memory stream opener was called. Had I stayed in the source code view, that easily cured inefficiency would have gone unnoticed.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
BillWoodruff13-Jul-18 3:10
professionalBillWoodruff13-Jul-18 3:10 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
David A. Gray13-Jul-18 6:28
David A. Gray13-Jul-18 6:28 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
BillWoodruff13-Jul-18 9:12
professionalBillWoodruff13-Jul-18 9:12 
GeneralRe: Does This Carbon Unit Thinks Like A Silicon Unit? Pin
David A. Gray13-Jul-18 9:14
David A. Gray13-Jul-18 9:14 
GeneralWoz's quote about Jobs' failure Pin
raddevus12-Jul-18 9:31
mvaraddevus12-Jul-18 9:31 
GeneralRe: Woz's quote about Jobs' failure Pin
User 842012-Jul-18 9:49
User 842012-Jul-18 9:49 
GeneralRe: Woz's quote about Jobs' failure Pin
Rick York12-Jul-18 9:54
mveRick York12-Jul-18 9:54 
GeneralRe: Woz's quote about Jobs' failure Pin
ZurdoDev12-Jul-18 10:27
professionalZurdoDev12-Jul-18 10:27 
GeneralRe: Woz's quote about Jobs' failure Pin
raddevus12-Jul-18 10:30
mvaraddevus12-Jul-18 10:30 
GeneralRe: Woz's quote about Jobs' failure Pin
User 842012-Jul-18 10:44
User 842012-Jul-18 10:44 
GeneralRe: Woz's quote about Jobs' failure Pin
raddevus12-Jul-18 11:48
mvaraddevus12-Jul-18 11:48 
GeneralRe: Woz's quote about Jobs' failure Pin
raddevus12-Jul-18 12:07
mvaraddevus12-Jul-18 12:07 
GeneralRe: Woz's quote about Jobs' failure Pin
User 5924112-Jul-18 13:48
User 5924112-Jul-18 13:48 
GeneralRe: Woz's quote about Jobs' failure Pin
raddevus12-Jul-18 17:49
mvaraddevus12-Jul-18 17:49 
AnswerRe: Woz's quote about Jobs' failure Pin
User 5924112-Jul-18 18:30
User 5924112-Jul-18 18:30 
GeneralRe: Woz's quote about Jobs' failure Pin
Kirk 1038982113-Jul-18 7:51
Kirk 1038982113-Jul-18 7:51 
GeneralRe: Woz's quote about Jobs' failure Pin
User 5924113-Jul-18 10:24
User 5924113-Jul-18 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.