|
From: Bastian M. <bma...@we...> - 2006-02-22 14:37:51
|
When drawing large images (binary and ascii) gnuplot is veeeery slow on my (windows) machine. E.g. with an image (RGB) of 1024*256 pixels it takes about >5.5s to output on any terminal. Profiling reveals that gnuplot spends >75% of it's time in gp_realloc() <-- cp_extend() <-- get_data(). The crucial point is that the maximum increase of the points[] array is limited to 1000. Changing line 411 in plot2d.c - cp_extend(current_plot, i + (i < 1000 ? i : 1000)); + cp_extend(current_plot, i + i); eliminates that problem, but uses exceedingly large amounts of memory. Can anybody confirm this behaviour on non-windows machines? Or is this a problem of gp_realloc() on Windows? Bastian --=20 Bastian M=E4rkisch Physikalisches Institut, Universit=E4t Heidelberg |