Summary: | The Contacts mixin wastes memory in duplicated strings | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Alban Crequy <alban.crequy> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | alban.crequy, vivek |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alban Crequy
2011-10-25 07:42:33 UTC
I thought that all these duplicate strings were allocated and kept in memory permanently but it is only transient allocations for the need of replying to: - Connection.Interface.Contacts.GetContactAttributes() - Connection.Interface.ContactList.GetContactListAttributes() And the strings are freed after the D-Bus message is sent. (In reply to comment #0) > Could GQuarks be used instead of duplicating strings? That would be nice; in the meantime, tp_contacts_mixin_set_contact_attribute() could be changed to use g_intern_string() or similar without breaking its API, I guess? -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-glib/issues/72. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.