Click here to Skip to main content
15,919,422 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: TreeView control node selection Pin
BuckBrown27-Nov-07 12:18
BuckBrown27-Nov-07 12:18 
Questionhoe to get class name that is derived from CSnapInItem class at run time Pin
alien888825-Nov-07 18:27
alien888825-Nov-07 18:27 
AnswerRe: hoe to get class name that is derived from CSnapInItem class at run time Pin
Christian Graus25-Nov-07 19:15
protectorChristian Graus25-Nov-07 19:15 
QuestionSocket in c++ Pin
manish.patel25-Nov-07 16:53
manish.patel25-Nov-07 16:53 
AnswerRe: Socket in c++ Pin
Christian Graus25-Nov-07 19:04
protectorChristian Graus25-Nov-07 19:04 
Questionheeeelp Pin
noonsuliman23-Nov-07 22:45
noonsuliman23-Nov-07 22:45 
AnswerRe: heeeelp Pin
Mark Salsbery24-Nov-07 8:10
Mark Salsbery24-Nov-07 8:10 
QuestionMixed Assembly Performance Degradation on VC++2008 Pin
uusheikh23-Nov-07 20:57
uusheikh23-Nov-07 20:57 
Hi,
I'm using VS2008 Team Suite Trial edition, and when i compile my program without any changes, the performance of the .exe is poorer compared to VS2005. My program is a mixed /clr program with native and managed portions in the same assembly. It does some image processing.

With VS2005, the execution time per frame is 0.003sec / frame. On VS2008, the execution time is 0.020sec / frame. Thats nearly 7 times slower. Is there any compiler switches which are causing this? (In my VS2008, even after setting the WINVER to 0x600 does not make any difference).

My compiler switches are (VS2005)
/O2 /GL /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /EHa /MD /Yu"stdafx.h" /Fp"Release\Scene Configurator.pch" /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /nologo /c /Zi /clr /TP /errorReportStick out tonguerompt /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"

Switches (VS2008)
/O2 /GL /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /EHa /MD /Yu"stdafx.h" /Fp"Release\Scene Configurator.pch" /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /nologo /c /Zi /clr /TP /errorReportStick out tonguerompt /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"

Linker (VS2005)
/OUT:"C:\Users\Usman\Desktop\Scene Configurator 7.6.8\Release\Scene Configurator.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"Release\Scene Configurator.exe.intermediate.manifest" /DEBUG /PDB:"c:\Users\Usman\Desktop\Scene Configurator 7.6.8\release\Scene Configurator.pdb" /SUBSYSTEM:WINDOWS /LTCG /ENTRY:"WinMainCRTStartup" /MACHINE:X86 /FIXED:No /ERRORREPORTStick out tongueROMPT

Linker(VS2008)
/OUT:"C:\Users\Usman\Desktop\Scene Configurator 7.6.8-08\Release\Scene Configurator.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"Release\Scene Configurator.exe.intermediate.manifest" /MANIFESTUAC:NO /DEBUG /PDB:"c:\Users\Usman\Desktop\Scene Configurator 7.6.8-08\Release\Scene Configurator.pdb" /SUBSYSTEM:WINDOWS /LTCG /ENTRY:"WinMainCRTStartup" /DYNAMICBASE:NO /FIXED:No /MACHINE:X86 /ERRORREPORTStick out tongueROMPT

How can i get back my performance?
Also, another Image Processing app (Pure console based C++), the execution time on VS2005 is 44 sec, while on VS2008 is 34 sec (An improvement!).

All performance measurement in my app is done using QueryPerfCounter. My system is Vista Business x86 on Core Duo 1.66Ghz, 2GB RAM.

AnswerRe: Mixed Assembly Performance Degradation on VC++2008 Pin
Paul Conrad25-Nov-07 9:22
professionalPaul Conrad25-Nov-07 9:22 
QuestionPrograming for Dummies Pin
shokme27723-Nov-07 10:47
shokme27723-Nov-07 10:47 
AnswerRe: Programing for Dummies Pin
Luc Pattyn23-Nov-07 11:13
sitebuilderLuc Pattyn23-Nov-07 11:13 
AnswerRe: Programing for Dummies Pin
Paul Conrad1-Dec-07 15:18
professionalPaul Conrad1-Dec-07 15:18 
Questionneed little help with copy files Pin
rpcpyz23-Nov-07 10:14
rpcpyz23-Nov-07 10:14 
AnswerRe: need little help with copy files Pin
Mark Salsbery23-Nov-07 10:21
Mark Salsbery23-Nov-07 10:21 
GeneralRe: need little help with copy files Pin
rpcpyz24-Nov-07 11:13
rpcpyz24-Nov-07 11:13 
GeneralRe: need little help with copy files Pin
Mark Salsbery24-Nov-07 12:03
Mark Salsbery24-Nov-07 12:03 
GeneralRe: need little help with copy files Pin
rpcpyz25-Nov-07 13:08
rpcpyz25-Nov-07 13:08 
GeneralRe: need little help with copy files Pin
Mark Salsbery25-Nov-07 13:16
Mark Salsbery25-Nov-07 13:16 
GeneralRe: need little help with copy files Pin
Mark Salsbery25-Nov-07 21:21
Mark Salsbery25-Nov-07 21:21 
GeneralRe: need little help with copy files Pin
rpcpyz26-Nov-07 5:41
rpcpyz26-Nov-07 5:41 
QuestionExtremely large decimal to binary Pin
smsmfe23-Nov-07 2:18
smsmfe23-Nov-07 2:18 
AnswerRe: Extremely large decimal to binary Pin
Luc Pattyn23-Nov-07 2:30
sitebuilderLuc Pattyn23-Nov-07 2:30 
GeneralRe: Extremely large decimal to binary Pin
smsmfe23-Nov-07 2:54
smsmfe23-Nov-07 2:54 
GeneralRe: Extremely large decimal to binary Pin
Luc Pattyn23-Nov-07 3:09
sitebuilderLuc Pattyn23-Nov-07 3:09 
GeneralRe: Extremely large decimal to binary Pin
smsmfe23-Nov-07 3:58
smsmfe23-Nov-07 3:58 

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.