Click here to Skip to main content
15,112,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C/C++ Optimization Pin
Stephen Hewitt9-Oct-11 5:56
MemberStephen Hewitt9-Oct-11 5:56 
AnswerRe: C/C++ Optimization Pin
Hans Dietrich9-Oct-11 6:38
mentorHans Dietrich9-Oct-11 6:38 
GeneralRe: C/C++ Optimization Pin
«_Superman_»9-Oct-11 17:50
professional«_Superman_»9-Oct-11 17:50 
AnswerRe: C/C++ Optimization Pin
Erudite_Eric9-Oct-11 6:48
MemberErudite_Eric9-Oct-11 6:48 
AnswerRe: C/C++ Optimization Pin
cmk9-Oct-11 9:42
Membercmk9-Oct-11 9:42 
GeneralRe: C/C++ Optimization Pin
Hans Dietrich10-Oct-11 4:03
mentorHans Dietrich10-Oct-11 4:03 
GeneralRe: C/C++ Optimization Pin
Randor 10-Oct-11 14:26
professional Randor 10-Oct-11 14:26 
GeneralRe: C/C++ Optimization Pin
cmk12-Oct-11 8:06
Membercmk12-Oct-11 8:06 
Good summary.

As you mention, the fast code option can can cause a cache miss. Additionally, earlier versions at least, could result in enough bloat to create extra pages. Related code, that under 'small' sits in the same page, could be split into different pages under 'fast'. This can result in more page faults. The performance impact due to page faults can exceed the speed improvements made from 'fast'.

So, based on past experience, and that these days the difference in optimization strategies is generally minor, I still use 'small'.

I haven't experienced the compiler ignoring my inline settings yet, have to check that, thanks.

The memset issue ... I ran into the same things years ago and found the following:
http://msdn2.microsoft.com/en-us/library/ms972826.aspx[^]
...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

QuestionExcel automation. How to save as *.xls with Excel 2010? Pin
Falconapollo8-Oct-11 21:09
MemberFalconapollo8-Oct-11 21:09 
GeneralRe: Excel automation. How to save as *.xls with Excel 2010? Pin
David Crow10-Oct-11 4:31
MemberDavid Crow10-Oct-11 4:31 
Questionhow to specify the compiler search path?(Visual Studio 2005) Pin
Falconapollo8-Oct-11 20:06
MemberFalconapollo8-Oct-11 20:06 
AnswerRe: how to specify the compiler search path?(Visual Studio 2005) Pin
PJ Arends8-Oct-11 21:37
professionalPJ Arends8-Oct-11 21:37 
GeneralRe: how to specify the compiler search path?(Visual Studio 2005) Pin
Falconapollo8-Oct-11 21:40
MemberFalconapollo8-Oct-11 21:40 
AnswerRe: how to specify the compiler search path?(Visual Studio 2005) Pin
Niklas L9-Oct-11 0:14
MemberNiklas L9-Oct-11 0:14 
AnswerRe: how to specify the compiler search path?(Visual Studio 2005) Pin
Richard MacCutchan9-Oct-11 0:21
mveRichard MacCutchan9-Oct-11 0:21 
AnswerRe: how to specify the compiler search path?(Visual Studio 2005) Pin
Luc Pattyn9-Oct-11 0:24
sitebuilderLuc Pattyn9-Oct-11 0:24 
Questionsending SMS in C++ Pin
Hadi Dayvary8-Oct-11 10:00
MemberHadi Dayvary8-Oct-11 10:00 
AnswerRe: sending SMS in C++ Pin
André Kraak8-Oct-11 10:14
MemberAndré Kraak8-Oct-11 10:14 
GeneralRe: sending SMS in C++ Pin
Hadi Dayvary8-Oct-11 11:20
MemberHadi Dayvary8-Oct-11 11:20 
AnswerRe: sending SMS in C++ Pin
Erudite_Eric9-Oct-11 4:48
MemberErudite_Eric9-Oct-11 4:48 
GeneralRe: sending SMS in C++ Pin
Hadi Dayvary9-Oct-11 10:35
MemberHadi Dayvary9-Oct-11 10:35 
QuestionBasic Question About LRESULT Pin
AmbiguousName7-Oct-11 21:30
MemberAmbiguousName7-Oct-11 21:30 
AnswerRe: Basic Question About LRESULT Pin
Richard MacCutchan7-Oct-11 22:11
mveRichard MacCutchan7-Oct-11 22:11 
Questionpriview of files Pin
VCProgrammer7-Oct-11 20:33
MemberVCProgrammer7-Oct-11 20:33 
AnswerRe: priview of files Pin
Richard MacCutchan7-Oct-11 22:09
mveRichard MacCutchan7-Oct-11 22:09 

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.