Re: Object Graphics slow?? [message #21102] |
Tue, 08 August 2000 00:00 |
Paul van Delst
Messages: 364 Registered: March 1997
|
Senior Member |
|
|
Martin Schultz wrote:
>
> David Fanning wrote:
>>
>> Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
>>
>>> In recent discussion about object graphics vs direct graphics it has been
>>> generally accepted that the object graphics system is slower. In an idle
>>> moment (ha!) I was inspired to run a couple of quick tests to see just how
>>> much slower. Here are the results:
>>>
>>> * Plot a line graph with 1000000 (that's 1 million) points:
>>>
>>> Object graphics (create and draw an IDLgrplot object): 1.45 s
>>> Direct graphics (call 'plot'): 2.90 s
>>>
>>> * Draw 100 byte arrays, each [256, 256], in succession as gray-scale images:
>>>
>>> Object graphics (create, draw and destroy 100 IDLgrImage objects): 2.9 s
>>> Direct graphics (call 'tv' 100 times): 6.2 s
>>>
>>> These examples (and I accept that they're limited) don't bear out the
>>> general opinion.
>>>
>>> Tests done on Windows NT, IDL 5.3, Compaq machine with Pentium II 400 MHz
>>> CPU, 256 MB RAM.
>>
>> I've been coming to this conclusion over time, too.
>> In fact, I'm beginning to think slow object graphics
>> programs, like slow IDL programs in general, are due
>> more to lousy programming than to lousy tools. :-)
>>
>> Cheers,
>>
>> David
>
> ... all the more important that RSI provides more high-level object
> graphics routines (including contours and maps) !!!!
hear, hear!
--
Paul van Delst Ph: (301) 763-8000 x7274
CIMSS @ NOAA/NCEP Fax: (301) 763-8545
Rm.202, 5200 Auth Rd. Email: pvandelst@ncep.noaa.gov
Camp Springs MD 20746
|
|
|
Re: Object Graphics slow?? [message #21104 is a reply to message #21102] |
Tue, 08 August 2000 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
David Fanning wrote:
>
> Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
>
>> In recent discussion about object graphics vs direct graphics it has been
>> generally accepted that the object graphics system is slower. In an idle
>> moment (ha!) I was inspired to run a couple of quick tests to see just how
>> much slower. Here are the results:
>>
>> * Plot a line graph with 1000000 (that's 1 million) points:
>>
>> Object graphics (create and draw an IDLgrplot object): 1.45 s
>> Direct graphics (call 'plot'): 2.90 s
>>
>> * Draw 100 byte arrays, each , in succession as gray-scale images:
>>
>> Object graphics (create, draw and destroy 100 IDLgrImage objects): 2.9 s
>> Direct graphics (call 'tv' 100 times): 6.2 s
>>
>> These examples (and I accept that they're limited) don't bear out the
>> general opinion.
>>
>> Tests done on Windows NT, IDL 5.3, Compaq machine with Pentium II 400 MHz
>> CPU, 256 MB RAM.
>
> I've been coming to this conclusion over time, too.
> In fact, I'm beginning to think slow object graphics
> programs, like slow IDL programs in general, are due
> more to lousy programming than to lousy tools. :-)
>
> Cheers,
>
> David
... all the more important that RSI provides more high-level object
graphics routines (including contours and maps) !!!!
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|
Re: Object Graphics slow?? [message #21107 is a reply to message #21102] |
Tue, 08 August 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
> In recent discussion about object graphics vs direct graphics it has been
> generally accepted that the object graphics system is slower. In an idle
> moment (ha!) I was inspired to run a couple of quick tests to see just how
> much slower. Here are the results:
>
> * Plot a line graph with 1000000 (that's 1 million) points:
>
> Object graphics (create and draw an IDLgrplot object): 1.45 s
> Direct graphics (call 'plot'): 2.90 s
>
> * Draw 100 byte arrays, each [256, 256], in succession as gray-scale images:
>
> Object graphics (create, draw and destroy 100 IDLgrImage objects): 2.9 s
> Direct graphics (call 'tv' 100 times): 6.2 s
>
> These examples (and I accept that they're limited) don't bear out the
> general opinion.
>
> Tests done on Windows NT, IDL 5.3, Compaq machine with Pentium II 400 MHz
> CPU, 256 MB RAM.
I've been coming to this conclusion over time, too.
In fact, I'm beginning to think slow object graphics
programs, like slow IDL programs in general, are due
more to lousy programming than to lousy tools. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|