MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Naming and Directories?
Chris Gray (cg#ami-cg,GraySage.Edmonton.AB.CA) spake thusly:
> [Mark Gritter:]
>
> >Hmm... this seems unnecessary. Wouldn't strcmp() quit as soon as there
> >was a difference in the strings anyway? You'd only be saving the
> >function call overhead, which could be eliminated by inlining.
>
> Most compiler systems can only inline functions that they have the
> source to. So, that would work if you wrote your own strcmp(), but not
> with the (possibly highly optimized) system one. I've used the trick
If it's that optimised might it not be defined in the header file,
giving the compiler the source? I mean, if I was writing a highly
optimised strcmp I wouldn't overlook the overhead involved in a function
call...
--
Jo
_______________________________________________
MUD-Dev maillist - MUD-Dev#kanga,nu
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- Re: [MUD-Dev] Naming and Directories?, (continued)
- Re: [MUD-Dev] Naming and Directories?,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Sun 14 Mar 1999, 09:31 GMT
- Re: [MUD-Dev] Naming and Directories?,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Tue 16 Mar 1999, 22:15 GMT
- Re: [MUD-Dev] Naming and Directories?,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Tue 16 Mar 1999, 22:21 GMT
- Re: [MUD-Dev] Naming and Directories?,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Wed 17 Mar 1999, 18:31 GMT
[ Other Periods
| Other mailing lists
| Search
]