Very slow print '-append' over network
2 views (last 30 days)
Show older comments
I use the print command with the '-append' option to make a multipage PS file. I recently updated to 2014b and the -append option seems extremely slow. Using the following code:
outfile = '\\nsgroup3\m2020_scs\pstest.ps';
% make a big figure
myfig = figure;
plot(1:10000,rand(10000,1))
% and another
myfig2 = figure;
plot(1:10000, rand(10000,1))
print(myfig, '-dpsc2', outfile);
tic
print(myfig2, '-dpsc2', outfile, '-append');
toc
Without the -append, the 2nd print command is done in < 1 second. With the -append, it takes ~20 seconds. If I change the file output location to be on my local disk the problem disappears. That is, the 2nd print command with the -append takes < 1 second.
I doubt the network speed is an issue, I copied a 700 MB file in < 10 seconds.
When the 2nd print command is doing it's thing, I do see a randomly-named .ps file in the output folder whose size is growing very slowly.
Thanks for any suggestions!
2 Comments
Stefan
on 9 Mar 2015
I see a similar factor of 20 when using '-append' on network drives with R2014b. Is there any improvement in R2015a?
Pstrang Rzekle
on 12 Jun 2015
Still a problem in R2015a. MATLAB tech support: do you know about this?
Answers (0)
See Also
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!