]> cvs.zerfleddert.de Git - micropolis/blob - src/notes/Performance
rename setenv and unsetenv to not clash with functions provided by libc
[micropolis] / src / notes / Performance
1 8878317760 31.79 31.79 163289 14 animateTiles (g_ani.c)
2 funky funky
3
4 1807963847 6.47 50.11 66550 18 MapScan (s_sim.c)
5
6 1041273098 3.73 62.74 26 24 GetFromMap (s_traf.c)
7 unwind and inline
8
9 909060732 3.25 69.71 39 34 SetZPower (s_zone.c)
10 frequently called from DoZone, MapScan
11
12 1041273098 3.73 62.74 26 24 GetFromMap (s_traf.c)
13 603351309 2.16 80.21 84 23 DriveDone (s_traf.c)
14 unwound and inlined DriveDone's 4 calls to GetFromMap
15
16
17 1398123339 3.85 66.07 103 28 Rand (s_sim.c)
18 199605792 0.55 90.82 76 17 RandInt (s_sim.c)
19 1336958 0.00 99.77 80 26 GRand (s_gen.c)
20 280400 0.00 99.95 29 17 random (random.c)
21 270800 0.00 99.95 102 30 ORand (s_mvobj.c)
22 340 0.00 100.00 34 52 ReallyRandom (tclxmath.c)
23 100 0.00 100.00 10 20 rand (rand.c)
24
25 lose as many calls to Rand as possible (RandInt is faster)
26 inline TestBounds2
27
28 malloc 117467 29.27 1022 Tk_DoWhenIdle (tkevent.c)
29 73203 18.24 908 Tk_CreateTimerHandler (tkevent.c)
30 Tk_DoWhenIdle and Tk_CreateTimerHandler should keep a list of reusable frobs
31
32 free 73201 18.48 1296 Tk_DoOneEvent (tkevent.c)
33 59107 14.92 1065 Tk_CancelIdleCall (tkevent.c)
34 58360 14.73 1372 Tk_DoOneEvent (tkevent.c)
35 Tk_DoOneEvent should reuse stuff
36
37 strlen 71590 22.28 518 StringCreate (tclhash.c)
38 65469 20.37 410 Tcl_SetVar2 (tclvar.c)
39
40 strcmp 108488 73.40 99 xpmHashSlot (hashtab.c)
41
42 XSync 73384 99.94 100 UpdateFlush (w_x.c)
43
44 Tk_DeleteTimerHandler 73202 99.99 818 StopMicropolisTimer (w_tk.c)
45 Tk_CreateTimerHandler 73203 100.00 810 StartMicropolisTimer (w_tk.c)
46 Tk_CancelIdleCall 59067 99.87 277 CancelRedrawView (w_tk.c)
47
Impressum, Datenschutz