MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Version 6 graphics can be painfully slow

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84848] Re: [mg84822] Version 6 graphics can be painfully slow
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Wed, 16 Jan 2008 23:01:10 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200801160820.DAA07210@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

On a system with an aged 3.2 GHz Pentium 4 and 2GB RAM:

   $Version
6.0 for Microsoft Windows (32-bit) (June 19, 2007)

   Timing[data = Table[{RandomReal[], RandomReal[]}, {100000}];]
{0.047,Null}

   Timing[
     Graphics[{PointSize[0.002],Point/@data},AspectRatio->Automatic]]
{0.157, -the graphic was here-}

By my watch, from typing Shift-Enter to seeing the result took 47 seconds.

Is that really "painfully slow"?

True, in 5.2 the graphic appears essentially instantly, although the
Timing value is 50% longer.

Szabolcs Horv=E1t wrote:
> In some cases, version 6 graphics can be painfully slow.  Consider this
> example:
>
> data = Table[{Random[], Random[]}, {100000}];
> Graphics[{PointSize[0.002], Point /@ data}, AspectRatio -> Automatic] / /
> Show
>
> This used to work fine in version 5.2, but it takes forever to complete
> in version 6.0.1.  I have a dataset with about 250 000 points that I
> would like to plot, so this problem is really annoying ...
>
> The strange thing is that as soon as the graphic appears, resizing is
> fast and works fine (especially with antialiasing disabled).  So it is 
> not the /drawing/ itself that takes so long.
>
> I really hope that these problems will be fixed in 6.1, but until then,
> does anyone have a suggestion for speeding this up?
>
> (At the moment I temporarily switch back to << Version5`Graphics`)
>
> Szabolcs
>

--
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305



  • Prev by Date: Re: Version 6 graphics can be painfully slow
  • Next by Date: Simplifying integer expressions with Mod and BitAnd
  • Previous by thread: Re: Version 6 graphics can be painfully slow
  • Next by thread: Re: Version 6 graphics can be painfully slow