[html5] r3091 - [e] (0) Note about performance characteristics of SQLResultSetRowList. (credit: ap)

whatwg at whatwg.org whatwg at whatwg.org
Mon May 11 16:53:09 PDT 2009


Author: ianh
Date: 2009-05-11 16:53:08 -0700 (Mon, 11 May 2009)
New Revision: 3091

Modified:
   index
   source
Log:
[e] (0) Note about performance characteristics of SQLResultSetRowList. (credit: ap)

Modified: index
===================================================================
--- index	2009-05-11 23:43:57 UTC (rev 3090)
+++ index	2009-05-11 23:53:08 UTC (rev 3091)
@@ -66133,6 +66133,7 @@
   Andrew Sidwell,
   Andrew Smith,
   Andy Heydon,
+  Andy Palay,
   Anne van Kesteren,
   Anthony Boyd,
   Anthony Bryan,

Modified: source
===================================================================
--- source	2009-05-11 23:43:57 UTC (rev 3090)
+++ source	2009-05-11 23:53:08 UTC (rev 3091)
@@ -56087,12 +56087,22 @@
   [IndexGetter] <span>any</span> <span title="dom-SQLResultSetRowList-item">item</span>(in unsigned long index);
 };</pre>
 
+  <p class="note">Implementors are encouraged to implement
+  <code>SQLResultSetRowList</code> objects lazily, or at least
+  asynchronously, for better performance.</p>
+
   <p><code>SQLResultSetRowList</code> objects have a <dfn
   title="dom-SQLResultSetRowList-length"><code>length</code></dfn>
   attribute that must return the number of rows it represents (the
   number of rows returned by the database). This is the <var
   title="dom-SQLResultSetRowList-length">length</var>.</p>
 
+  <p class="note">Fetching the <code
+  title="dom-SQLResultSetRowList-length">length</code> might be
+  expensive, and authors are thus encouraged to avoid using it (or
+  enumerating over the object, which implicitly uses it) where
+  possible.</p>
+
   <p>The object's <span>indices of the supported indexed
   properties</span> are the numbers in the range zero to <span title=""><var
   title="dom-SQLResultSetRowList-length">length</var>-1</span>, unless
@@ -77596,6 +77606,7 @@
   Andrew Sidwell,
   Andrew Smith,
   Andy Heydon,
+  Andy Palay,
   Anne van Kesteren,
   Anthony Boyd,
   Anthony Bryan,




More information about the Commit-Watchers mailing list