Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #272728

Category curl
Changed by Stefan Eissing <stefanohnoyoudont@eissing.org>
Changed at Thu 25 Jun 2026 14:07:40
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 26c6a4d89875e6652b47e32a36d0fb00d85fae4e

Comments

urlapi: do not keep an internal port string
Do not allocated an internal port string, just keep and number and a bit
if it is present. Format the port string in a local buffer when someone
asks for it and copy that.

This avoid the format/alloc penalty when parsing URLs and no one ever
asking for the port string.

(And there will be a method to get the uint16_t value directly in
 another PR)

Closes #22167

Changed files