ref doc doesn't talk about "helper getters" optimization in g_file_info.c
Submitted by Laurent Wan
Link to original bug (#621188)
Description
at first for the average user
- g_file_info_get_name (f)
and
- g_file_info_get_attribute_byte_string (f, G_FILE_ATTRIBUTE_STANDARD_NAME)
are the same. but that's not the case because g_file_info_get_name use some internal optimization -with hash table- to give faster results.
the documentation should state it because some people like me would use form 2) thinking it is as fast as form 1).
could the optimization mecanism be exposed in the public API in order to permit optimization access on custom attributes ?
this bug affect also others helper getters function and not only g_file_info_get_name.
Version: 2.25.x