|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-10-21 05:22:22
|
On Saturday, 20 October 2012, sfeam (Ethan Merritt) wrote: > On Saturday, 20 October 2012, Dima Kogan wrote: > > The optimization you're describing is more powerful. > > Do you think there will be a noticeable difference > > between the two approaches with real-world data? > > It is very hard to predict what data someone might > someday want to plot. Here is a simple script that > generates highly redundant commands by drawing a > series of vectors touching head-to-tail. > Suppression of the intervening M commands would reduce > the size of the output stream by 50%. And here's another pathological case. This one is actually pretty common, or at least it arises from a plot style I use often enough in real life. It's a scatter plot with variable color points, except that many (all in this example) of the points are the same color. Again suppression of the redundant commands (g000000 in this example) gives a reduction in size approaching 50%. set sample 1000 set term xlib set output 'dots.x11' plot '+' using (rand(0)):(rand(0)):(0) with dots lc rgb var |