)]}'
{
  "commit": "f669f7d25f0f491d5e487897227ff434aef20406",
  "tree": "4b040b835be1d47b7eca7240b7d7aa4b9e6f177b",
  "parents": [
    "8692c506520f6b268525b80890702432c95f13c4"
  ],
  "author": {
    "name": "Jorge Boncompte [DTI2]",
    "email": "jorge@dti2.net",
    "time": "Mon May 07 16:52:51 2012 +0000"
  },
  "committer": {
    "name": "David Lamparter",
    "email": "equinox@opensourcerouting.org",
    "time": "Tue May 22 20:25:02 2012 +0200"
  },
  "message": "bgpd: optimize aspath string representation and assegments handling\n\n* bgp_aspath.h: Add str_len to struct aspath.\n* bgp_aspath.c: Save the aspath string representation length and use it\n  instead of strlen().\n  (aspath_make_str_count) assign the string buffer directly for\n  consistency with the string length and change the return type to void.\n  (aspath_dup) use str_len and copy the string instead of calling\n  aspath_make_str_count().\n  (assegment_data_new) change from XCALLOC to XMALLOC. All users initialize\n  the memory before use.\n  (assegment_data_free) unused, removed.\n  (aspath_intern) check that there\u0027s always a -\u003estr pointer.\n  (aspath_hash_alloc) reuse assegments and string representation instead of\n  copying them.\n  (aspath_parse) now aspath_hash_alloc does not dupes memory, free the\n  temporary structures only if the aspath it is in the hash.\n  (aspath_cmp_left) remove useless NULL initialization.\n\nSigned-off-by: Jorge Boncompte [DTI2] \u003cjorge@dti2.net\u003e\nSigned-off-by: David Lamparter \u003cequinox@opensourcerouting.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "64b36775f3647155131bb82fd7ce1a414f493101",
      "old_mode": 33188,
      "old_path": "bgpd/bgp_aspath.c",
      "new_id": "c37a8897f2e84c9f1e30e511983ab30df3b46e5a",
      "new_mode": 33188,
      "new_path": "bgpd/bgp_aspath.c"
    },
    {
      "type": "modify",
      "old_id": "fc4dd6b790dd7960d0af378ea30682644a693107",
      "old_mode": 33188,
      "old_path": "bgpd/bgp_aspath.h",
      "new_id": "e8764cca2c397902e40a85976f7e48a6b7cac6e4",
      "new_mode": 33188,
      "new_path": "bgpd/bgp_aspath.h"
    }
  ]
}
