Uploaded image for project: 'libmusicbrainz'
  1. libmusicbrainz
  2. LMB-38

Should not call ne_sock_exit() repeatedly

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      ne_sock_exit() is called after every HTTP request. This is in turn calling gnutls_global_deinit() which is rather costly, see https://bugzilla.redhat.com/show_bug.cgi?id=1029394#c10 :
      "Also the gnutls global init is actually pretty CPU intensive so having a single CD lookup call gnutls_global_init+deinit as many as 15 times is actually wasting significant wall-clock time which is likely noticeable to the user."
      It would be nice to call ne_sock_exit() (and the corresponding init function) at most once.

      Attachments

        Activity

          People

            adhawkins Andy Hawkins
            teuf Christophe Fergeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Packages

                Version Package