[m-dev.] pprint performance

Ralph Becket rafe at cs.mu.OZ.AU
Mon Feb 25 14:08:40 AEDT 2002


Ralph Becket, Monday, 25 February 2002:
> 
> Most of the time we are just printing these strings, so we might as well
> do it as we go rather than first collecting them in a list (the other
> functionality provided is to concatenate them into a single string, but
> that's a much lower priority problem.)
> 
> I'll try combining steps 2 and 3 so as not to construct an output list
> and report back.

Success!  The combination of mark-up on demand and direct output means
the pretty printer now runs with a very small footprint.  The
performance cost is relatively small, but does mean that it scales to
truly enormous structures.

- Ralph
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list