comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: why is using objects so much slower ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: why is using objects so much slower ? [message #24596 is a reply to message #24594] Fri, 06 April 2001 06:14 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Henkie (deckard_007nospam@deja.com) writes:

> because I love object oriented programming, I decided to try the objects in
> IDL too. However, when using the objects to plot some of my stuff, it
> turned out to be soooooo sloooow. Really, I mean a factor of 10 or so, and
> I wasn't doing anything funky. Is this normal behaviour ? I'm actually
> quite disappointed about it that I can not use it this way. I must add that
> IDL on our HP9000 system isn't a speed champion (let alone the awfull
> pseudo-coloring : oops, my program ate all my colors), but at least it was
> useable.

There is no question object graphics can sometimes be slower
than direct graphics. Often this is caused by less
than optimal programming practice, but it also has
to do with lugging a true 3D representation along everywhere
you go. To be honest, this has become less an issue
as computers have gotten faster.

But, line plots!? Why would you *want* to do those
in object graphics? If you love object programming,
code up an object to do a line plot in direct graphics.
You get about 99% of the benefit of object graphics in
an object that is fast and powerful. At least 90% of
the objects I write don't use the object graphics class
library at all.

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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: poly_2d
Next Topic: Dual head displays

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 21:06:38 PDT 2025

Total time taken to generate the page: 1.11982 seconds