GNOME Bugzilla – Bug 673587
Make ignore_* for schemes and mime-types HashTables
Last modified: 2013-09-30 07:38:25 UTC
Rather than lists.
Created attachment 255545 [details] [review] plparse: Use hashtables in place of lists This should make lookups faster.
Review of attachment 255545 [details] [review]: ::: plparse/totem-pl-parser.c @@ +258,3 @@ struct TotemPlParserPrivate { + GHashTable *ignore_schemes; + GHashTable *ignore_mimetypes; Probably worth putting a comment somewhere saying these are maps from owned strings to booleans indicating membership in the ignore set. @@ +1551,3 @@ totem_pl_parser_scheme_is_ignored (TotemPlParser *parser, GFile *uri) { + char *scheme; gchar?
Attachment 255545 [details] pushed as 2bd6b00 - plparse: Use hashtables in place of lists