1. 29 Aug, 2017 1 commit
  2. 31 Jan, 2017 1 commit
    • Marco Bubke's avatar
      Utils: Fix long small string · a0c69c51
      Marco Bubke authored
      We used only 6 bit to save the short size but for SmallString with a size
      over 64 it is not enough. So we have now to use a uint16 instead of a
      uint8 if the size if over 64.
      Change-Id: I53558e492b6cb40b739b23a8af83d192a2e11bd2
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
  3. 19 Jan, 2017 4 commits
  4. 01 Nov, 2016 1 commit
    • Tim Jenssen's avatar
      Utils: Changeable SmallString stack size · b31c3e0d
      Tim Jenssen authored
      The size of the small string optimization was hard coded. For some use
      cases you want a bigger or smaller size. It is now configurable by a
      template parameter. For that we changed the name to BasicSmallString and
      added an alias of BasicSmallString<31> to SmallString.
      Change-Id: I844b4420d260290307a6018bb6cc4cf3ba7bd449
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
  5. 02 Aug, 2016 1 commit
  6. 23 Jun, 2016 1 commit
  7. 30 Mar, 2016 1 commit
  8. 25 Feb, 2016 2 commits
  9. 17 Feb, 2016 1 commit
    • Marco Bubke's avatar
      Utils: Add SmallString · 1eb0c94f
      Marco Bubke authored
      SmallString is a very simple utf8 string class. It's purpose is performance.
      It uses a short string opimization which provides 31 bytes of heap free
      memory to save a 30 bytes long string plus null terminator. If the string
      gets larger heap is allocated. The grow strategy is 1.5 to improve reuse
      of allocated memory.
      It uses optionally constexpr to provide string literals.
      Change-Id: I7757fb51abfeca200d074cbfce2f1d99edc0ecb0
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>