|
From: Ethan M. <merritt@u.washington.edu> - 2004-09-27 21:42:32
|
On Monday 27 September 2004 02:49 pm, Daniel J Sebald wrote: > > The basic layout of gnuplot_x11 is that commands are read from the input > > stream and either > > (a) executed immediately (e.g. "close window #5") > > or (b) stored in a list to be executed every time the current plot is redrawn. > > > >Why don't you switch gnuplot_x11 over to using scheme (b), > >and we can see just how much of a hit we take in execution time. > > Because I'm almost done with scheme (a)... changing over to scheme (b) > is the same amount of headaches. I'm a bit worried about races if you mix scheme (a) with the replots done under scheme (b). What happens if somebody resizes or otherwise triggers a replot on an old window while you're processing a new palette in the main pipe. Will that corrupt the new palette forever after? What if someone closes an old window (the only remaining user of a palette) just as you start to get a new copy of that same palette. Can you end up with no copies? Two copies? Maybe I worry too much. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |