1. 29 Apr, 2019 1 commit
  2. 12 Feb, 2019 1 commit
  3. 06 Feb, 2019 2 commits
  4. 23 Jan, 2019 1 commit
  5. 30 Aug, 2018 1 commit
  6. 29 Aug, 2018 1 commit
  7. 20 Aug, 2018 2 commits
    • Tony Finch's avatar
      trie: support for copy-on-write transactions · 1bc09711
      Tony Finch authored
      A COW transaction allows a trie to be used for reading concurrently
      while a modified version of the trie is being prepared. The change
      can be committed by swapping the new trie root in place of the old one.
      
      Internally, this feature uses one bit reference counts to identify which
      parts of the trie are shared between the old and new versions, which
      parts are new-only (so can be mutated) and which parts are old-only
      (and will be free()d after commit).
      1bc09711
    • Tony Finch's avatar
      trie: refactor to prepare for copy-on-write support · e7b7e187
      Tony Finch authored
      No functional change.
      
      The point of this commit is to make it possible to stash a few
      flags in leaf nodes as well as branch nodes, though we don't
      yet exercise this possibility in any meaningful way.
      
      This fixes a foolish mistake in the original qp trie data structure
      declarations: the combination of unions and bitfields is a complete
      disaster for portability, and it gets into dangerous territory wrt
      compiler optimization. Instead, we just use a big enough word (uint64_t)
      which is broken up into fields using accessor macros and inline functions,
      and cast it to a pointer when necessary. We don't actually care about
      the detailed layout in memory, just the numeric value, so a union was
      the wrong tool.
      e7b7e187
  8. 03 Oct, 2017 1 commit
  9. 17 Jan, 2017 1 commit
  10. 24 Oct, 2016 1 commit
  11. 17 Oct, 2016 8 commits