Skip to content

v4.3.0

@fiorix fiorix tagged this 25 Apr 15:09
Highlights since v4.2.1:
- Reduce AVP decode allocations ~34% and latency ~26% on the hot path
  (#229): array-indexed decoder dispatch, pre-merged inherited AVPs,
  typed FindAVPByCode lookup, sentinel error reuse, putUint24 direct
  writes, DecodeGroupedFromBytes shortcut.
- New public API: dict.FindAVPByCode (typed uint32 fast path),
  datatype.RegisterDecoder, datatype.ErrCannotUnregisterBuiltin,
  diam.DecodeGroupedFromBytes.
- Behavior change: writes to datatype.Decoder for built-in TypeIDs
  are now silently no-op'd by Decode; the array fast path wins. Use
  datatype.RegisterDecoder to override built-ins. Direct writes for
  custom (non-built-in) TypeIDs continue to work as before.
- Doc and hygiene: drop stale Travis config, backfill license headers,
  fix doc typos, tighten README phrasing.
Assets 2
Loading