Johannes Weiss
f4b185675f
speed up getBytes ( #761 )
...
Motivation:
Due to https://bugs.swift.org/browse/SR-9604 , ByteBuffer.getBytes
seriously regressed (factor 10x) since NIO 1.11 . This works around it
until the issue is fixed.
Modifications:
bind the memory to UInt8s to get an UnsafeBufferPointer<UInt8> rather
than an UnsafeRawBufferPointer.
Result:
- getBytes 10x faster
- make @John-Connolly happy, thanks for reporting!
2019-01-21 21:26:56 +00:00
..
2018-02-08 11:21:55 +00:00
2018-12-10 17:59:24 +00:00
2019-01-19 13:59:12 +00:00
2019-01-03 10:58:15 +00:00
2019-01-21 16:41:04 +00:00
2019-01-21 21:26:56 +00:00
2019-01-07 12:32:58 +00:00
2018-12-17 19:19:40 +00:00
2018-12-18 09:20:37 +00:00
2018-12-11 08:44:45 +00:00
2018-03-19 19:38:24 +01:00
2019-01-05 08:08:47 +00:00
2018-12-17 18:40:44 +00:00
2018-03-02 15:40:52 +09:00
2019-01-21 16:41:04 +00:00
2019-01-07 12:32:58 +00:00
2018-12-10 16:23:12 +00:00
2018-04-03 11:44:14 +01:00
2018-12-10 17:59:24 +00:00
2018-12-10 17:59:24 +00:00
2019-01-21 16:41:04 +00:00
2019-01-21 16:41:04 +00:00
2018-03-02 15:40:52 +09:00
2018-03-12 13:27:42 +01:00
2018-04-24 18:51:24 +01:00
2018-12-10 17:59:24 +00:00
2019-01-05 08:08:47 +00:00
2018-12-14 12:34:08 +00:00
2019-01-07 11:52:22 +00:00
2018-09-27 11:32:43 +01:00
2019-01-07 11:52:22 +00:00
2019-01-07 11:52:22 +00:00
2018-11-13 14:49:08 +00:00
2019-01-07 11:52:22 +00:00
2019-01-07 12:32:58 +00:00
2018-12-10 17:59:24 +00:00
2018-12-07 21:15:34 +00:00
2019-01-21 16:41:04 +00:00
2018-12-11 17:50:58 +00:00
2018-12-11 17:50:58 +00:00
2018-12-07 21:15:34 +00:00
2018-08-01 15:57:27 +01:00
2018-03-02 15:40:52 +09:00
2018-02-28 09:46:29 +00:00
2019-01-21 16:41:04 +00:00
2018-12-10 17:59:24 +00:00
2018-12-17 19:19:40 +00:00
2018-12-10 20:18:13 +00:00
2019-01-21 16:41:04 +00:00
2018-12-10 17:59:24 +00:00
2018-11-13 14:49:08 +00:00
2018-11-16 20:01:11 +00:00
2018-12-07 21:15:34 +00:00
2018-12-07 21:15:34 +00:00