Skip to content
Snippets Groups Projects
Commit dfdc98f7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rémi Denis-Courmont
Browse files

xiph_metadata: Don't always force UTF8 encoding

When profiling the media library on a small samples folder, the calls to
EnsureUTF8 end up accounting for about 8% of the runtime (including
calls to vlc_towc)
By not always executing it, especially when the value is expected *not*
to be UTF8 but ascii, we end up spending only 0.04% of the time in
EnsureUTF8
This also saves useless calls when the value is to be dropped
parent 0e0e1392
No related branches found
No related tags found
1 merge request!609xiph_metadata: Don't check UTF8 encoding on a base64 string
Pipeline #139907 passed with stage
in 12 minutes and 43 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment