Skip to content

Ztring: integers converted to text without stream - #209

Merged
JeromeMartinez merged 1 commit into
MediaArea:masterfrom
JeromeMartinez:Ztring_Number_Speed
Nov 8, 2026
Merged

JeromeMartinez merged 1 commit into
MediaArea:masterfrom
JeromeMartinez:Ztring_Number_Speed

Conversation

@JeromeMartinez

Copy link
Copy Markdown
Member

From_Number() used an output stream for each integer, which is slow while it is used for most numbers of MediaInfo (e.g. the values of the trace, the hexadecimal digits of From_CC1(), From_CC2() and From_UUID()). Integers are now converted directly, with the same result as the stream with setbase() and MakeUpperCase().

From_Number() used an output stream for each integer, which is slow while it is used for most numbers of MediaInfo, e.g. the values of the trace, the hexadecimal digits of From_CC1(), From_CC2() and From_UUID(). Integers are now converted directly, with the same result as the stream with setbase() and MakeUpperCase(): hexadecimal for radix 16, octal for 8, decimal for other values, and in hexadecimal and octal negative values as the unsigned type of the same size.
@JeromeMartinez
JeromeMartinez merged commit 34210f4 into MediaArea:master Nov 8, 2026
16 checks passed
@JeromeMartinez
JeromeMartinez deleted the Ztring_Number_Speed branch November 8, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant