Mail Archives: djgpp/1996/11/28/18:04:08
> something odd which no one seems to have mentioned until now (and it's
> surprising!) use the profiler! it will help quite a bit so you don't go
> digging blindly through your code for things to speed up...
> in my experience (actually somebody said this, and i found out for myself)
> more than 50% of the program execution happens in one or two functions..
> often even more than 50%..
Actually, if I have a subroutine, which contains a _lot_ of local
variables,
does malloc _really_ get called all the time? I profiled my texture
mapping
code, and found that the malloc() routine was taking up about 17% of the
program execution time.
Does this sound right? If it is, I think I will be moving to a lot of
globals instead...
Leathal.
- Raw text -