3 ms·
Wouldn't a static parse method still allocate memory for the object that it returns?
by unchar1 2y ago
Wouldn't a static parse method still allocate memory for the object that it returns?
- ramesh31 2y ago> Wouldn't a static parse method still allocate memory for the object that it returns? Yes, but you don't have the overhead of constructing URL first. The new URL.canParse method from the article covers this.