Commit Graph

16 Commits

Author SHA1 Message Date
Dan Laine acbb9a7e0c remove expansionBoost from packer (Go's append does similar already). change initialSliceCap 1024 --> 256. Streamline packer.Expand, as this method is called very often 2020-06-15 13:12:55 -04:00
Dan Laine f28b69b819 set initial slice capacity for packer; packer pre-allocates capacity when possible 2020-06-15 10:06:40 -04:00
Dan Laine d1796c8b0b cleanup; revert string packing method 2020-06-14 18:15:44 -04:00
Dan Laine 9c4cfecf4e pack pointer to string instead of string...halves memory footprint 2020-06-14 12:23:05 -04:00
Dan Laine 00868d2a11 add multiput message which is sent in response to GetAncestors 2020-06-02 14:07:20 -04:00
Alex Willmer 12117b1728 utils: Add test for Packer.Expand 2020-03-29 17:43:18 +01:00
Alex Willmer 18b7662266 utils: Add test for Packer.CheckSpace 2020-03-29 17:42:47 +01:00
Alex Willmer 96109a60ea utils: Add tests for Packer.PackBool & UnpackBool 2020-03-29 17:42:12 +01:00
Alex Willmer 55cb9d174f utils: Add tests for Packer.PackFixedByteSlices & UnpackFixedByteSlices 2020-03-29 17:40:47 +01:00
Alex Willmer ae9c1549d0 utils: Add tests for Packer.PackBytes & UnpackBytes 2020-03-29 17:39:32 +01:00
Alex Willmer 66b031efc6 utils: Add tests for Packer.PackFixedBytes & UnpackFixedBytes 2020-03-29 17:10:16 +01:00
Alex Willmer 3914613731 utils: Add test for Packer.UnpackLong 2020-03-29 17:07:53 +01:00
Alex Willmer 9a4a44a764 utils: Add test for Packer.UnpackInt 2020-03-29 17:06:25 +01:00
Alex Willmer 80e6749592 utils: Add test for Packer.UnpackShort 2020-03-29 17:05:03 +01:00
Alex Willmer cd59668be5 utils: Add test for Packer.UnpackByte 2020-03-29 17:04:21 +01:00
StephenButtolph b9e34e3b15 init repo 2020-03-10 15:20:34 -04:00