)]}'
{
  "commit": "0d60cbb4c3b37d2e4b4e4fbcd6e257c39664be4e",
  "tree": "baec642126a53eff3b21838a74e29ba8703713d9",
  "parents": [
    "f917c04fac45b70ff38633675f86ab4b51782205"
  ],
  "author": {
    "name": "Takashi Iwai",
    "email": "tiwai@suse.de",
    "time": "Tue Oct 19 18:01:37 2021 +0200"
  },
  "committer": {
    "name": "Takashi Iwai",
    "email": "tiwai@suse.de",
    "time": "Fri Oct 29 09:46:59 2021 +0200"
  },
  "message": "ALSA: control: Use xarray for faster lookups\n\nThe control elements are managed in a single linked list and we\ntraverse the whole list for matching each numid or ctl id per every\ninquiry of a control element.  This is OK-ish for a small number of\nelements but obviously it doesn\u0027t scale.  Especially the matching with\nthe ctl id takes time because it checks each field of the snd_ctl_id\nelement, e.g. the name string is matched with strcmp().\n\nThis patch adds the hash tables with Xarray in addition to the linked\nlist for improving the lookup speed of a control element.  There are\ntwo xarray tables added to the card; one for numid and another for ctl\nid.  For the numid, we use the numid as the index, while for the ctl\nid, we calculate a hash key.\n\nThe lookup is done via a single xa_load().  When nothing hits, we look\nthrough the full list entries as a fallback.  So, the inquiry for a\nnon-existing element would take (even slightly longer) time with this\npatch.\n\nSigned-off-by: Takashi Iwai \u003ctiwai@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b7e9b58d3c78807271d48abe1719096936a64838",
      "old_mode": 33188,
      "old_path": "include/sound/core.h",
      "new_id": "80aa83600020f461b0b4b4bb94596c1a2ae48dcf",
      "new_mode": 33188,
      "new_path": "include/sound/core.h"
    },
    {
      "type": "modify",
      "old_id": "db2e3c63ff41a15fa6ff45b186b242b6a89e3cd7",
      "old_mode": 33188,
      "old_path": "sound/core/Kconfig",
      "new_id": "9478a1b5f534ca635ed069c341949f885fda81ce",
      "new_mode": 33188,
      "new_path": "sound/core/Kconfig"
    },
    {
      "type": "modify",
      "old_id": "a25c0d64d104f171ec8fe5eb1320919a406c9081",
      "old_mode": 33188,
      "old_path": "sound/core/control.c",
      "new_id": "ad373873f32ea12bbeabf7ef9961a3ce52d1b60d",
      "new_mode": 33188,
      "new_path": "sound/core/control.c"
    },
    {
      "type": "modify",
      "old_id": "ac335f5906c6b442bc7944b10ee1685ea652ecdf",
      "old_mode": 33188,
      "old_path": "sound/core/init.c",
      "new_id": "b88dc86599a3864d0887541f99f757c730399ebf",
      "new_mode": 33188,
      "new_path": "sound/core/init.c"
    }
  ]
}
