Commit Graph

4195 Commits

Author SHA1 Message Date
Adithya Kumar
643c80378e Add TODO comments in Serialize.TH 2023-09-09 21:18:58 +05:30
Adithya Kumar
e7b21daabe Fix the bug in Serialize.decode 2023-09-09 17:41:49 +05:30
Adithya Kumar
aefdc8411d Test the encoding and decoding functions in the roundtrip 2023-09-09 13:03:05 +05:30
Adithya Kumar
da35e31db5 Keep Serialize.(encode, decode) simple 2023-09-07 21:41:36 +05:30
Adithya Kumar
7fea7d908b Add tests for the constructorTagAsString option in Serialize.TH 2023-09-06 23:16:11 +05:30
Adithya Kumar
736f615d60 Implement the constructorTagAsString config option in Serialize.TH 2023-09-06 22:46:26 +05:30
Adithya Kumar
13f91aad8c Change the API and update doc of a few APIs in Serialize.TH 2023-09-06 15:09:08 +05:30
Adithya Kumar
791a5eebd6 Initialize all the options in Serealize.TH Config 2023-09-06 15:09:08 +05:30
Adithya Kumar
4f76a0fc22 Make the egde cases more clear on Serialize.TH 2023-09-06 15:09:08 +05:30
Adithya Kumar
81027f9096 Add options to control inlining using deriveSerializeWith 2023-09-06 15:09:08 +05:30
Adithya Kumar
9f7b45dcf4 Use a configuration to control functionality of deriveSerializeWith 2023-09-06 15:09:08 +05:30
Adithya Kumar
9479709551 Add Serialize test for datatype with functional parameters 2023-09-01 08:01:58 +05:30
Adithya Kumar
5381715f97 Change the functionality of deriveSerailizeWith 2023-09-01 08:01:58 +05:30
Adithya Kumar
50fc60cb50 Add serialize size checks for constant size datatypes 2023-08-30 14:07:33 +05:30
Adithya Kumar
1d0e20c9d3 Add a test checking the size in the roundtrip serialization tests 2023-08-30 14:07:33 +05:30
Adithya Kumar
5fef84310e Remove Serailize.Size and change the signature of Serialize.size 2023-08-30 14:07:33 +05:30
Adithya Kumar
6a3971955c Copy only the required slice while pinning/unpinning the array 2023-08-28 16:39:14 +05:30
Adithya Kumar
ab0c439e77 Move putSliceUnsafe from MutArray to Unbox 2023-08-28 16:39:14 +05:30
Adithya Kumar
c4b717ec8e Implement clone in MutArray 2023-08-28 16:39:14 +05:30
Harendra Kumar
9e8c35d49e Add fusion checking code in Data.Fold benchmark 2023-08-24 19:43:51 +05:30
Ranjeet Ranjan
cceee460c7
Change the Builder type (#2561) 2023-08-24 19:40:19 +05:30
Ranjeet Ranjan
8ac4c0b170
Reduce internal imports of "streamly-core" in "streamly" package (#2571) 2023-08-24 18:59:06 +05:30
Ranjeet Ranjan
313d1786a0
Fix Data.Array.Generic.writeLastN bug (#2567)
Co-authored-by: Harendra Kumar <harendra@composewell.com>
2023-08-24 15:34:26 +05:30
Ranjeet Ranjan
fe5a036489
Remove the no-fusion build flag and DISABLE_FUSION cpp macro (#2568) 2023-08-24 11:42:29 +05:30
Ranjeet Kumar Ranjan
8e6d418922 Export the Data.Time.Clock.Type module from Clock 2023-08-24 11:41:26 +05:30
Harendra Kumar
faf50b6be1 Perform safe deserialization of list length 2023-08-23 19:08:37 +05:30
Harendra Kumar
3e93e22228 Disable some redundant serialize benchmarks 2023-08-23 16:20:10 +05:30
Harendra Kumar
71346fd9a3 Add encode benchmark
encode = poke + getSize + array allocation
2023-08-23 16:20:10 +05:30
Harendra Kumar
282d79cd9d Use deepseq instead of equality check 2023-08-23 16:20:10 +05:30
Harendra Kumar
b6a2d3e836 Remove INLINE from list instance 2023-08-21 16:28:02 +05:30
Harendra Kumar
7bc450d725 Pass the array size to deserialize for bound check 2023-08-21 16:28:02 +05:30
Harendra Kumar
ad84b443b0 Update documentation of Unbox for sum types 2023-08-21 16:28:02 +05:30
Harendra Kumar
43e25a173f Enable the comparison after deserialization 2023-08-21 16:28:02 +05:30
Harendra Kumar
bf3e775de3 Deserialize: Construct the list more efficiently 2023-08-21 16:28:02 +05:30
Harendra Kumar
7c81bfb731 Deserialize: Keep the likely path in the straight branch 2023-08-21 16:28:02 +05:30
Harendra Kumar
73533c028c Enable array bound check during deserialize 2023-08-21 16:28:02 +05:30
Ranjeet Ranjan
209e990b06
Re-export entire submodules from Parser (#2525) 2023-08-21 14:09:09 +05:30
Adithya Kumar
bfe0169024 Simplify Serialize benchmarking code 2023-08-21 01:45:06 +05:30
Harendra Kumar
4dbdf477a8 Remove the alloc cost from poke op
For better comparison with peek cost.
Also now there are two versions of poke benchmarks, one including the
getSize cost and the other without to figure out how much overhead
getSize adds, because the cost may be nothing if it is dominated by
cache miss costs.
2023-08-21 01:45:06 +05:30
Harendra Kumar
4fdc8360ff Include the size/alloc op costs in poke/roundtrip 2023-08-21 01:45:06 +05:30
Harendra Kumar
da249d8fd1 Move out code from CPP macro to Haskell 2023-08-21 01:45:06 +05:30
Harendra Kumar
d09a236c93 Add a TODO comment about checking bounds 2023-08-21 01:45:06 +05:30
Harendra Kumar
356eab0590 Add some explanatory comments in Serialize TH code 2023-08-21 01:45:06 +05:30
Harendra Kumar
31a679a7d9 Add array boundary checks during serialization 2023-08-21 01:45:06 +05:30
Harendra Kumar
f7f42e0242 Improve "size" op performance in Serialize
By using tail-recursive traversal of the structures.
2023-08-21 01:45:06 +05:30
Harendra Kumar
8b18616dba Add Data.Serialize to targets 2023-08-21 01:45:06 +05:30
Ranjeet Ranjan
1c584e545a
Move StreamK and StreamD folder up (#2543) 2023-08-19 15:38:58 +05:30
Harendra Kumar
e2d5628204 Enable asserts only after the -O2 option 2023-08-19 15:21:45 +05:30
Harendra Kumar
a819eb7e5d Add some module level notes to ToBytes 2023-08-19 07:54:08 +05:30
Adithya Kumar
2e53b60161 Increase memory for limit-build-mem on the Serialize test-suite 2023-08-18 23:07:50 +05:30