[Rd] Postscript can be very slow in R 2.13-0

From: Stephen Milborrow <milbo_at_sonic.net>
Date: Thu, 14 Apr 2011 14:56:36 +0200


Viewing certain postscript files under R 2.13-0 is very slow, at least using GSview on my 64 bit Windows 7 system. To see this, compare how long it takes to display these two files (fast.ps was created by removing the /srgb stuff in .ps.prolog):

    www.milbo.org/postscript/slow.ps

    www.milbo.org/postscript/fast.ps

The code to produce the above two files is here:

    www.milbo.org/postscript/slow-postscript.R

This is not exactly a bug, but is it a known issue? The hack used to produce fast.ps above is fragile and not suitable for regular use. Is there a option to the postscript() function (or could one be added) that would sacrifice sRGB support for speed?

Stephen Milborrow
www.milbo.users.sonic.net

Version info:

I'm using GSview 4.9 and Ghostscript 8.64.

> R.version

               _
platform       x86_64-pc-mingw32
arch           x86_64
os             mingw32
system         x86_64, mingw32
status
major          2
minor          13.0
year           2011
month          04
day            13
svn rev        55427
language       R

version.string R version 2.13.0 (2011-04-13)

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 14 Apr 2011 - 13:02:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Apr 2011 - 03:10:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive