Re: optimized code
- From: "Mike" <vimakefile@xxxxxxxxx>
- Date: Tue, 6 Dec 2005 13:23:01 -0800
"Daniel O'Connell [C# MVP]" <onyxkirx@xxxxxxxxxxxxxxxxxxxxx> wrote in
message news:eNZ5Ljq%23FHA.1676@xxxxxxxxxxxxxxxxxxxxxxx
>
> Yes, the Managed C++ compiler should still be better. the C# compiler
> still doesn't go very far as far as optimizations go, AFAIK anyway. They
> are left to the JIT.
Thanks. Well, I guess I don't care if the compiler does the magic, or the
JIT.
I assume the JIT is limited to peephole optimizations? Does the JIT handle
common sub-expression removal, loop invarients, etc?
If I have an inner loop of something like:
for ( i ...) {
a.b.c.x = ...
a.b.c.y = ...
a.b.c.arr[i] =
...
}
Do I need to put a.b.c in a local outside the loop, or will the JIT take
care of this?
Sometimes it's cleaner to code this way, sometimes not - but there's also
auto-generated code, and whether I need to generate code with temps.
thanks
.
- Follow-Ups:
- Re: optimized code
- From: Mike
- Re: optimized code
- References:
- optimized code
- From: Mike
- Re: optimized code
- From: Daniel O'Connell [C# MVP]
- optimized code
- Prev by Date: Re: Customizing MSDataSetGenerator output in VS2005
- Next by Date: Re: RTF widget and undo disabling (sometimes only)
- Previous by thread: Re: optimized code
- Next by thread: Re: optimized code
- Index(es):
Relevant Pages
|