Click here to Skip to main content
15,881,803 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: So this is satisfying. Free code performance upgrade! Pin
jmaida10-Jul-22 9:53
jmaida10-Jul-22 9:53 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
Greg Utas10-Jul-22 15:17
professionalGreg Utas10-Jul-22 15:17 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
jmaida10-Jul-22 15:41
jmaida10-Jul-22 15:41 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
jmaida10-Jul-22 15:42
jmaida10-Jul-22 15:42 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
jmaida10-Jul-22 15:47
jmaida10-Jul-22 15:47 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
honey the codewitch10-Jul-22 19:10
mvahoney the codewitch10-Jul-22 19:10 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
Greg Utas11-Jul-22 0:09
professionalGreg Utas11-Jul-22 0:09 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
honey the codewitch11-Jul-22 0:26
mvahoney the codewitch11-Jul-22 0:26 
You're talking about binary size. I see. Yes there is some code bloat, but it all depends on what you're doing.
In some cases - surprisingly more than even I would have expected - you won't be duplicating any more code than you would by hand.

This code is a good example. There's virtually zero template overhead for multiple instantiations. It doesn't mean some code isn't duplicated, but you would have had to duplicate that duplicated code if you made each instantiation by hand.

htcw_tft_io/tft_spi.hpp at master · codewitch-honey-crisis/htcw_tft_io · GitHub[^]

Forgive me, because earlier I thought you were talking about runtime memory usage, not binary size.

I should add that while it's true in many cases that binary size increases memory usage, this is not true on most of the platforms I develop on these days. Hence your meaning in your assertion was completely off my radar. Smile | :)
To err is human. Fortune favors the monsters.

GeneralRe: So this is satisfying. Free code performance upgrade! Pin
honey the codewitch10-Jul-22 19:13
mvahoney the codewitch10-Jul-22 19:13 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
jmaida11-Jul-22 10:13
jmaida11-Jul-22 10:13 
GeneralRe: So this is satisfying. Free code performance upgrade! Pin
jmaida11-Jul-22 11:18
jmaida11-Jul-22 11:18 
GeneralWordle 386 Pin
Amarnath S9-Jul-22 15:02
professionalAmarnath S9-Jul-22 15:02 
GeneralRe: Wordle 386 Pin
Peter_in_27809-Jul-22 16:15
professionalPeter_in_27809-Jul-22 16:15 
GeneralRe: Wordle 386 Pin
OriginalGriff9-Jul-22 18:46
mveOriginalGriff9-Jul-22 18:46 
GeneralRe: Wordle 386 - 4 again Pin
pkfox9-Jul-22 20:29
professionalpkfox9-Jul-22 20:29 
GeneralRe: Wordle 386 Pin
Sandeep Mewara9-Jul-22 21:29
mveSandeep Mewara9-Jul-22 21:29 
GeneralRe: Wordle 386 Pin
Sander Rossel9-Jul-22 22:02
professionalSander Rossel9-Jul-22 22:02 
GeneralRe: Wordle 386 Pin
ChandraRam10-Jul-22 0:16
ChandraRam10-Jul-22 0:16 
GeneralRe: Wordle 386 Pin
Greg Utas10-Jul-22 0:51
professionalGreg Utas10-Jul-22 0:51 
GeneralRe: Wordle 386 Pin
Cp-Coder10-Jul-22 1:22
Cp-Coder10-Jul-22 1:22 
GeneralRe: Wordle 386 Pin
jmaida10-Jul-22 15:00
jmaida10-Jul-22 15:00 
GeneralWordle 385 Pin
Amarnath S8-Jul-22 16:41
professionalAmarnath S8-Jul-22 16:41 
GeneralRe: Wordle 385 Pin
OriginalGriff8-Jul-22 18:40
mveOriginalGriff8-Jul-22 18:40 
GeneralRe: Wordle 385 Pin
Peter_in_27808-Jul-22 19:19
professionalPeter_in_27808-Jul-22 19:19 
GeneralRe: Wordle 385 - 3 for me Pin
pkfox8-Jul-22 20:56
professionalpkfox8-Jul-22 20:56 

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.