1. 25 12月, 2018 7 次提交
  2. 21 12月, 2018 7 次提交
    • S
      Merge pull request #1452 from diguage · 93e7a0a5
      Stephane Nicoll 提交于
      * pr/1452:
        Polish "Refactor duplicate code"
        Refactor duplicate code
      93e7a0a5
    • S
      Polish "Refactor duplicate code" · b83ceab8
      Stephane Nicoll 提交于
      Closes gh-1452
      b83ceab8
    • D
      Refactor duplicate code · c15bbd67
      diguage 提交于
      See gh-1452
      c15bbd67
    • A
      Add test for calculateCapacity · 5a8b8b11
      Arjen Poutsma 提交于
      Issue: SPR-17558
      Closes gh-2054
      5a8b8b11
    • A
      Calculating capacity before allocation. · a00be62b
      Arjen Poutsma 提交于
      This commit optimizes the `CharSequenceEncoder` to allocate `DataBuffer`
      instances with a predicted capacity.
      
      Issue: SPR-17558
      a00be62b
    • B
      Use DataBuffer.write in CharSequenceEncoder · 4955d08f
      Brian Clozel 提交于
      Since SPR-17558, `DataBuffer` now offers a new method to write Strings
      to them. This commit makes `CharSequenceEncoder` use that.
      
      Issue: SPR-17558
      4955d08f
    • B
      Write CharSequence instances to DataBuffers · 6361b0cb
      Brian Clozel 提交于
      Prior to this commit, one could write a `CharSequence` to an existing
      `DataBuffer` instance by turning it into a byte array or `ByteBuffer`
      first. This had the following disadvantages:
      
      1. Memory allocation was not efficient (not leveraging pooled memory
      when available)
      2. Dealing with `CharsetEncoder` is not always easy
      3. `DataBuffer` implementations, like `NettyDataBuffer` can use
      optimized implementations in some cases
      
      This commit adds a new `DataBuffer#write(CharSequence, Charset)` method
      for those cases and also an `ensureCapacity` method useful for checking
      that the current buffer has enough capacity to write to it..
      
      Issue: SPR-17558
      6361b0cb
  3. 19 12月, 2018 2 次提交
  4. 18 12月, 2018 5 次提交
  5. 17 12月, 2018 5 次提交
  6. 14 12月, 2018 1 次提交
  7. 13 12月, 2018 12 次提交
  8. 12 12月, 2018 1 次提交