H
Henri.Chinasque
Hi all,
I am wondering if there are any quick/efficient ways to look at a
piece of c++ code and determine if it would run faster if it was
compiled to native code. I ask this because all of my c++ is currently
compiled with the /clr flag meaning that nothing is compiled native.
I've seen some examples where wrapping arithmetically intense code
with "pragma unmanaged" results in increased performance, but this was
in test code with possibly oversimplified non "real world" code.
At first I thought this would be something simple, but after a bit of
reading it seems to become enormously complex with the following
themes recurring:
compiler options
allowing for JIT "warmup"
improper benchmarking code that doesn't result in definitive speed
increase
etc.
Any articles, tips, comments would be much appreciated.
I am wondering if there are any quick/efficient ways to look at a
piece of c++ code and determine if it would run faster if it was
compiled to native code. I ask this because all of my c++ is currently
compiled with the /clr flag meaning that nothing is compiled native.
I've seen some examples where wrapping arithmetically intense code
with "pragma unmanaged" results in increased performance, but this was
in test code with possibly oversimplified non "real world" code.
At first I thought this would be something simple, but after a bit of
reading it seems to become enormously complex with the following
themes recurring:
compiler options
allowing for JIT "warmup"
improper benchmarking code that doesn't result in definitive speed
increase
etc.
Any articles, tips, comments would be much appreciated.