[Webkit-unassigned] [Bug 38664] Web Inspector: add a "table" method to console, to allow output of tabular data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 07:55:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38664





--- Comment #28 from Patrick Mueller <pmuellr at yahoo.com>  2010-06-01 07:55:07 PST ---
A note about the implementation for WebKit.

I'm got just a bit of code I'm playing with, just getting to the point of accessing the table data.  I'm using the existing model of sending data with the console methods over, which means things cover over as proxies.  The implication is that there's a lot of proxies here.  Namely:

   1          - for the data table itself
   # of rows  - a proxy per row
   # of cells - a proxy per cell

Meaning, at minimum, for a rows x cols table, there are (1) + (rows) + (rows*cols) proxy deferences.  If I understand things correctly with the way the proxies work.

Dereferencing the additional parameters adds more.

The upside of using proxies deeply is that none of the logic or CPU needed for sorting, finding all the "columns", etc, needs to go in the debug target (back end), that code and processing can be done in the debug client (front end).

Using all these proxies could, of course, could present some latency; for big tables, for slow connections between debug target and debug client, etc.  However, I'm of the mind that "fixing" this is a pre-optimization, and we all know about pre-optimizations :-)

Thought I'd mention it though, in case anyone thinks this is a real show-stopper, or if there is an easy way around all the proxy dereferences.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list