Article View: comp.windows.interviews
Article #325Re: Image displaying performance
From: Miki Eto
Date: Wed, 15 Apr 1992 05:11
Date: Wed, 15 Apr 1992 05:11
115 lines
7182 bytes
7182 bytes
I write
>>I measured the cost of displaying linton.tif on an EWS4800 workstation,
>>it took about 22 seconds to display the image.
>>An EWS4800 workstation contains an R3000A CPU chip (33MHz, 37MIPS).
The X server I use does not support TrueColor visual, and
I use DirectColor visual.
I think the problem is in making color map.
My profile is the following.
----------------------------------------------------------------------------
* -p[rocedures] using basic-block counts; *
* sorted in descending order by the number of cycles executed in each *
* procedure; unexecuted procedures are excluded *
----------------------------------------------------------------------------
21210014 cycles
cycles %cycles cum % cycles bytes procedure (file)
/call /line
2664200 12.56 12.56 173 46 $$586 (XImUtil.c)
2587171 12.20 24.76 13 50 __eq__13RGBTableEntryCFRC13RGBTableEntry (../../IV-X11/xdisplay.c)
2255599 10.63 35.39 147 224 find__10ivRGBTableFR6XColor13RGBTableEntry (../../IV-X11/xdisplay.c)
1871088 8.82 44.22 9356 15 LZWDecode (../../TIFF/tif_lzw.c)
1709400 8.06 52.27 111 70 poke__8ivRasterFUlT1fN33 (../../IV-X11/xraster.c)
1661278 7.83 60.11 50 12 GetNextCode (../../TIFF/tif_lzw.c)
1647800 7.77 67.88 107 14 $$570 (XImUtil.c)
1324400 6.24 74.12 43 10 $$567 (XImUtil.c)
1111048 5.24 79.36 555524 476 rgb_raster__14TIFFRasterImplFv (tifv.c)
836145 3.94 83.30 55 32 find_color__12ivDisplayRepFUsN21R6XColor (../../IV-X11/xdisplay.c)
658285 3.10 86.40 6787 10 bzero (Berklib.c)
472795 2.23 88.63 85 14 malloc (malloc.c)
301962 1.42 90.06 59 21 XAllocColor (XGetHColor.c)
288160 1.36 91.42 56 17 _XReply (XlibInt.c)
286608 1.35 92.77 56 224 insert__10ivRGBTableF13RGBTableEntry6XColor (../../IV-X11/xdisplay.c)
278748 1.31 94.08 54 14 _XFlush (XlibInt.c)
278388 1.31 95.39 51 12 realfree (malloc.c)
225731 1.06 96.46 11 22 hash__13RGBTableEntryCFv (../../IV-X11/xdisplay.c)
----------------------------------------------------------------------------
* -p[rocedures] using invocation counts; *
* sorted in descending order by number of calls per procedure; *
* unexecuted procedures are excluded *
----------------------------------------------------------------------------
421035 invocations total
calls %calls cum% bytes procedure (file)
202422 48.08 48.08 100 __eq__13RGBTableEntryCFRC13RGBTableEntry (../../IV-X11/xdisplay.c)
33286 7.91 55.98 332 GetNextCode (../../TIFF/tif_lzw.c)
30800 7.32 63.30 336 $$567 (XImUtil.c)
20521 4.87 68.17 44 hash__13RGBTableEntryCFv (../../IV-X11/xdisplay.c)
15403 3.66 71.83 224 find__10ivRGBTableFR6XColor13RGBTableEntry (../../IV-X11/xdisplay.c)
15403 3.66 75.49 1152 find_color__12ivDisplayRepFUsN21R6XColor (../../IV-X11/xdisplay.c)
15400 3.66 79.15 624 poke__8ivRasterFUlT1fN33 (../../IV-X11/xraster.c)
15400 3.66 82.80 2436 $$586 (XImUtil.c)
15400 3.66 86.46 268 $$570 (XImUtil.c)
5571 1.32 87.79 744 malloc (malloc.c)
5562 1.32 89.11 660 realfree (malloc.c)
5531 1.31 90.42 156 cleanfree (malloc.c)
5486 1.30 91.72 120 __nw__FUi (../new/_new.c)
5176 1.23 92.95 280 _XRead (XlibInt.c)
5174 1.23 94.18 308 _XFlush (XlibInt.c)
5146 1.22 95.40 804 _XReply (XlibInt.c)
5118 1.22 96.62 224 insert__10ivRGBTableF13RGBTableEntry6XColor (../../IV-X11/xdisplay.c)
5118 1.22 97.83 284 XAllocColor (XGetHColor.c)
----------------------------------------------------------------------------
* -h[eavy] using basic-block counts; *
* sorted in descending order by the number of cycles executed in each *
* line; unexecuted lines are excluded *
----------------------------------------------------------------------------
procedure (file) line bytes cycles % cum %
find__10ivRGBTableFR6XColor13RGBTableEntry (../../IV-X11/xdisplay.c) 86 224 2255599 10.63 10.63
__eq__13RGBTableEntryCFRC13RGBTableEntry (../../IV-X11/xdisplay.c) 78 88 1979905 9.33 19.97
rgb_raster__14TIFFRasterImplFv (tifv.c) 3 476 1111048 5.24 25.21
__eq__13RGBTableEntryCFRC13RGBTableEntry (../../IV-X11/xdisplay.c) 77 12 607266 2.86 28.07
$$586 (XImUtil.c) 512 136 400400 1.89 29.96
poke__8ivRasterFUlT1fN33 (../../IV-X11/xraster.c) 137 164 400400 1.89 31.85
bzero (Berklib.c) 55 12 394680 1.86 33.71
poke__8ivRasterFUlT1fN33 (../../IV-X11/xraster.c) 138 160 385000 1.82 35.52
poke__8ivRasterFUlT1fN33 (../../IV-X11/xraster.c) 136 152 354200 1.67 37.19
$$586 (XImUtil.c) 520 124 354200 1.67 38.86
$$570 (XImUtil.c) 156 28 323400 1.52 40.39
$$567 (XImUtil.c) 127 56 308000 1.45 41.84
$$570 (XImUtil.c) 147 20 308000 1.45 43.29
GetNextCode (../../TIFF/tif_lzw.c) 487 36 299574 1.41 44.70
insert__10ivRGBTableF13RGBTableEntry6XColor (../../IV-X11/xdisplay.c) 86 224 286608 1.35 46.06
bzero (Berklib.c) 54 8 263120 1.24 47.30
GetNextCode (../../TIFF/tif_lzw.c) 452 28 233002 1.10 48.39
find_color__12ivDisplayRepFUsN21R6XColor (../../IV-X11/xdisplay.c) 476 60 231045 1.09 49.48
$$586 (XImUtil.c) 513 56 215600 1.02 50.50
--end---------------------------------------------------------------------
I measured the cost of displaying linton.tif again by using xv
on an EWS4800 workstation, it took about 2 seconds to
display the image.
tiftopnm linton.tif > linton.ppm
xv linton.ppm
I would appreciate it, if you could give me some information
which would allow me to achieve as good a performance as xv.
Your sincerely.
Miki Eto
Technical Details
Message-ID:
<9204150511.AA03899@ds10.kagi.esed.mt.nec.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ds10.kagi.esed.mt.nec.co.jp!etoShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ds10.kagi.esed.mt.nec.co.jp!eto From: eto@ds10.kagi.esed.mt.nec.co.jp (Miki Eto) Subject: Re: Image displaying performance Message-ID: <9204150511.AA03899@ds10.kagi.esed.mt.nec.co.jp> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Wed, 15 Apr 1992 05:11:06 GMT Lines: 120