[m-rev.] Re: for review: parsing_utils improvements

Ian MacLarty maclarty at csse.unimelb.edu.au
Tue Sep 29 16:04:29 AEST 2009


On Tue, Sep 29, 2009 at 3:49 PM, Zoltan Somogyi <zs at csse.unimelb.edu.au> wrote:
> On 29-Sep-2009, Ian MacLarty <maclarty at csse.unimelb.edu.au> wrote:
>> Another compromise could be to set a flag in the src that indicates
>> whether the mutable should be updated at all.  If you ran the parser
>> outside the parse/4 predicate then the mutable would simply never be
>> updated.
>
> In some cases, testing whether you should do something is as expensive
> as just doing it.
>

Okay.  I guess I should benchmark it to see if this is one of those cases.

Ian.

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list