Unfortunately I did some more in-depth tracing/profiling and replacing
WebStringToGURL(web_security_origin.toString())
with
url::Origin(web_security_origin).GetURL()
Only produces marginal benefits (though it is a nicer API). I'm going to hold off on finishing the move until I can figure out a way to make the two steps (operator url::Origin and GetURL()) a bit faster.
Most of the time is spent doing string copies, and some policies that happens to be a bit slow.
Comment 1 by csharrison@chromium.org
, Sep 29 2016