W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Issue Xpath-30: Reusing result sets

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Thu, 28 Mar 2002 13:16:52 -0500
To: "'www-dom@w3.org'" <www-dom@w3.org>
Message-ID: <OF3023669D.7B127F37-ON85256B8A.0063FD99@pok.ibm.com>

>I was hoping that another person who also commented on this method was
>to benchmark any difference in performance between reusing a result set
>passing null consistently.  My instinct is that any performance gain is

The gain -- or loss -- is going to be highly implementation dependent,
based on how much overhead that particular code (and the platform it's
running on) imposes on creating a new instance of the object. There may be
a good reason for letting applications pass this parameter in as an
optimization hint -- but also a good reason for letting the implementation
decide whether accepting that hint makes sense.

So I agree that the wording should be "cannot or choses not to", or
something along those lines, and that users should always never assume that
the object passed in will be the same as the one which is returned.

Joe Kesselman  / IBM Research
Received on Thursday, 28 March 2002 13:18:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC