[webkit-dev] Removing webkitSlice (was Re: Existing metrics for deprecated features)

Darin Fisher darin at google.com
Thu Sep 13 20:15:01 PDT 2012


On Thu, Sep 13, 2012 at 6:16 PM, Adam Barth <abarth at webkit.org> wrote:

> On Thu, Sep 13, 2012 at 5:13 PM, Adam Barth <abarth at webkit.org> wrote:
> > Another metric we have is for Blob.webkitSlice:
> >
> > Ratio of Blob.webkitSlice calls to Blob.slice: 14.87%
> > Ratio of Blob.webkitSlice calls to Document creation: 0.0053%
> >
> > It's difficult to know how to interpret this data because we don't
> > actually correlate calls to webkitSlice with Documents or Pages.
> > Instead, we just count the total number of calls across all Documents.
> >  This gives us an upper bound on how many Documents (or Pages) would
> > be affected by deleting Blob.webkitSlice, but doesn't measure that
> > information as accurately as the data we have for mutation events.
>
> Based on this data, I've posted a patch for removing Blob.webkitSlice
> in favor of Blob.slice:
>
> https://bugs.webkit.org/show_bug.cgi?id=96715
>
> Adam


So, worst case 53 out of a million pages calls webkitSlice.  But, it is
easy to imagine that that upper bound is crazy high, and more likely a
couple pages simply call webkitSlice a lot.  Also, given that there are so
many more calls to Blob.slice() one could imagine that sites that call
webkitSlice probably have fallback to Blob.slice().  Is this the hypothesis?

-Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120913/19324f8c/attachment.html>


More information about the webkit-dev mailing list