On Fri, Feb 17, 2017, at 01:36 AM, Boris Zbarsky wrote:
> On 2/16/17 7:12 AM, Xidorn Quan wrote:
> > The perf penalty of xml:base is basically that we have to dynamically
> > construct a URL from bottom to top along the tree whenever we need a
> > base URL of an element. And since this URL may be constructed
> > dynamically, the caller would have to hold a strong reference to it, and
> > thus an additional refcount manipulation. So a URL not dynamically
> > generated would be enough to avoid that penalty.
> 
> I assume this means that the Get/SetExplicitBaseURI API on nsINode is 
> still OK?

Actually I'd like to remove it as well, since it still requires us to
climb the tree to get the base URI while its only usage can be done in a
much more efficient way. Actually I've filed a bug and been working on
removing it. [1]

Is there any reason you think we should keep the Get/SetExplicitBaseURI
API?

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1340061

- Xidorn
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to