On 05/01/12 01:32, Arun Persaud wrote:
> Hi
>
> attached is a patch that removes some whitespace from svg-output. It
> replaces the function SVG_PathLimit that was used called after each M or
> L command to wrap long lines with another functions that either adds the
> newline or adds a space and the trailing space is removed from the
> commands M and L.
>
> It also removes a few traling whitespaces from the svg-header.
>
> Works for me, but I don't use any extras that seem to be available in
> the header.
>
> cheers
>
> Arun
>
>
Hi,
I was also wondering about reducing the footprint of variable names as well.
The long names are nice and explicitly and are eminently readable. This
is great for compiled source code but can have a heavy impact on
interpreted code like js and svg.
I was looking in particular at the gnuplot svg javascript code there are
two variables which seem to occur in every other line in the code.
gnuplot_svg plotcoord
replacing these two alone with a one or two letter variable name would
likely reduce the js footprint by about half.
Since I run "standalone" option this gets included in each file and it
would be nice to reduce it somewhat.
I was intending to do this locally , but since the subject came up, I
thought I'd post the suggestion.
Best regards, Peter.
|