Matt Stancliff 101f0b44a5 Bitops: Stop overallocating storage space on set
Previously the string was created empty then re-sized
to fit the offset, but sds resize causes the sds to
over-allocate by at least 1 MB (which is a lot when
you are operating at bit-level access).

This also improves the speed of initial sets by 2% to 6%
based on quick testing.

Patch logic provided by @oranagra

Fixes #1918
2014-12-11 10:54:21 -05:00
..
2012-04-13 17:52:33 -07:00
2014-09-29 06:49:07 -04:00
2014-08-08 10:43:54 +02:00
2014-10-22 15:23:21 +02:00
2014-10-22 15:23:21 +02:00
2014-09-29 06:49:07 -04:00
2013-01-19 10:59:44 +01:00
2014-09-29 06:49:08 -04:00
2014-04-22 16:14:38 +02:00
2014-08-07 16:17:37 +02:00
2014-07-02 17:04:14 +02:00
2014-08-08 14:54:02 +02:00
2014-08-08 10:05:32 +02:00
2014-08-08 14:54:02 +02:00
2014-10-09 11:51:30 -04:00
2014-08-13 10:53:51 +02:00
2013-01-19 10:59:44 +01:00
2014-07-02 16:31:22 +02:00
2014-08-07 12:20:57 +02:00
2014-09-29 06:49:07 -04:00
2013-07-02 12:08:07 +02:00
2014-11-25 21:58:05 +08:00
2013-09-03 15:15:51 +02:00