[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49492] gl2ps buffer size should be sized only

From: Rik
Subject: [Octave-bug-tracker] [bug #49492] gl2ps buffer size should be sized only once when producing Latex output
Date: Mon, 31 Oct 2016 19:33:56 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0


                 Summary: gl2ps buffer size should be sized only once when
producing Latex output
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 31 Oct 2016 12:33:54 PM PDT
                Category: Performance
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



The sequence to produce output for Latex involves calling gl2ps_renderer::draw
twice.  See this comment in gl2ps-print.cc:

// For LaTeX output the print process uses 2 drawnow() commands.
// The first one is for the pdf/ps/eps graph to be included.  The
// print_cmd is saved as old_print_cmd.  Then the second drawnow()
// outputs the tex-file and the graphic filename to be included is
// extracted from old_print_cmd.

If the plot to print is very complicated, the gl2ps buffer may overflow in
which case Octave has to retry with a larger buffer size.  This is fine, but
after the first drawnow(), the correct buffer size is known and it shouldn't
be necessary to go through the time consuming step of sizing the buffer

Code which produces problem:

#print("temp","-deps");  # This produces only one overflow sequence


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]