MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Languages
[Jeff K:]
I promised myself not to touch this language debate anymore, but
:byte *t1,t2;
:
:...
:for (i=0;i<length;i++) *t1++ = *t2++;
:
:or something simialr?
:
:Such array walkign is MUCh faster then array access with [], but yould
:never guess that unless you understood what C is doing.
Any C compiler optimizer worth its salt will turn the [] form into the
pointer form. And perhaps even into a 'memcpy' call for your example.
That's a *lot* harder to do in C++ if you have redefined '[]', however!
--
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
- Thread context:
- Re: [MUD-Dev] Languages, (continued)
- Re: [MUD-Dev] Languages,
Jeff Kesselman jeffk#tenetwork,com, Sun 25 May 1997, 08:10 GMT
- Re: [MUD-Dev] Languages,
Jeff Kesselman jeffk#tenetwork,com, Sun 25 May 1997, 08:14 GMT
- Re: [MUD-Dev] Languages,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 26 May 1997, 00:10 GMT
- Re: [MUD-Dev] Languages,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 26 May 1997, 00:10 GMT
- Re: [MUD-Dev] Languages,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 26 May 1997, 00:17 GMT
[ Other Periods
| Other mailing lists
| Search
]