Commit Graph

4514 Commits

Author SHA1 Message Date
Harendra Kumar
8eab0f07cd Add a comment about newRounded 2024-01-11 17:45:27 +05:30
Harendra Kumar
63f9adfbba Refactor splitAt, add unsafeSplitAt 2024-01-11 16:35:37 +05:30
Harendra Kumar
a290e6e6ec Add strict eval comments for fromBytes etc. 2024-01-11 16:32:34 +05:30
Harendra Kumar
8e6653491a Add commented show instance to Path type 2024-01-11 16:32:34 +05:30
Harendra Kumar
350b6acae2 Add serialization/deserialization using Unbox 2024-01-05 14:26:40 +05:30
Harendra Kumar
e135f9741f Refactor array compaction functions
Allocate the required amount in the beginning itself instead of checking in
the loop.

Use the size in terms of array elements.
2024-01-05 13:51:02 +05:30
Harendra Kumar
7a0f49b8d2 Rename "resize" to "grow"
As it never decreases the size.
2024-01-05 12:47:49 +05:30
Harendra Kumar
9d17f13977 Fix a bug in "resize"
With the bug it would always reallocate even if there is spare capacity
in the array.
2024-01-05 12:47:49 +05:30
Harendra Kumar
0833f534f5 Remove concatChunks, use Array.concat 2024-01-05 12:47:49 +05:30
Harendra Kumar
901c6eb775 Deprecate Array/Stream module, move parsing funcs to Array 2024-01-05 12:46:56 +05:30
Harendra Kumar
2ac457f746 Remove unnecessary liftIO, add some comments
Remove redundant let from spliceCopy.
2024-01-04 14:10:10 +05:30
Harendra Kumar
157c63ff7c Implement Array/Stream funcs in Array/MutArray
We will finally deprecate the Array/Stream module.
2024-01-04 10:06:26 +05:30
Harendra Kumar
c3b8dd41fb Rename concatChunks, compactChunks to concat, compact 2024-01-04 09:27:51 +05:30
Harendra Kumar
fa14d0e98a Update docs of concatChunksRev 2024-01-04 09:25:36 +05:30
Harendra Kumar
5274d3f1e3 Make the Eq instance doc clearer.
Avoid using byteCmp example, it may give an impression of how the
instance is defined.
2024-01-04 09:25:36 +05:30
Harendra Kumar
0ebc91ccab Fix docs of re-exported module appearing twice 2024-01-04 09:25:36 +05:30
Harendra Kumar
f4b1b1bdf1 Rename unfolds by convention in Array/MutArray 2024-01-04 09:25:36 +05:30
Harendra Kumar
11845277c7 Cleanup and make consistent the export lists of Array modules 2024-01-04 09:25:36 +05:30
Harendra Kumar
ffea484db8 Make changes for "reader" based impl of concatChunks 2024-01-04 09:12:53 +05:30
Harendra Kumar
2417874bed Deprecate MutArray/Stream module, move funcs to MutArray module
Move the mut array compaction funcs from MutArray.Stream to MutArray
module.
2024-01-04 09:03:24 +05:30
Harendra Kumar
0137a71772 Cleanup export section of streams of arrays in MutArray
Move cloning section
Move splicing section
Move slicing section
2024-01-04 08:27:51 +05:30
Harendra Kumar
894fd29906 Inline splitAt in MutArray and Array modules 2024-01-04 08:27:51 +05:30
Harendra Kumar
844da7dab8 Deprecate internal funcs toStreamD, toStreamDRev 2024-01-04 08:27:51 +05:30
Harendra Kumar
08e733d16d Stop exporting MutByteArray from MutArray module 2024-01-04 08:27:51 +05:30
Harendra Kumar
b19e108cb7 Move sliceOnSuffix to lower level Stream module 2024-01-04 08:27:51 +05:30
Harendra Kumar
8cdf6ede11 Move length and takeEndBy_ to lower level module 2024-01-04 08:27:51 +05:30
Harendra Kumar
471de5402d Move splitOn to lower level MutArray module 2024-01-04 08:27:51 +05:30
Harendra Kumar
89a019d252 Rename getIndicesD to getIndicesWith 2024-01-04 08:27:51 +05:30
Harendra Kumar
1ec583c74f Rename genSlicesFromLen in Array module 2024-01-04 08:27:51 +05:30
Harendra Kumar
6a5674002f Deprecate fromStreamD and fromStreamDN in Array 2024-01-04 08:27:51 +05:30
Harendra Kumar
023fe253b6 Deprecate internal funcs fromStreamD and fromStreamDN 2024-01-04 08:27:51 +05:30
Harendra Kumar
3519eaf820 Rename getSlicesUnfold to slicer 2024-01-04 08:27:51 +05:30
Harendra Kumar
6e37f26442 Rename fromArrayStreamK to fromChunksK
For consistency with other names.
2024-01-04 08:27:51 +05:30
Harendra Kumar
ff40cf0e7a Rename bufferChunks, writeChunks, flattenArrays 2024-01-04 07:42:14 +05:30
Harendra Kumar
191abebe92 Fix serialize test taking too long, too much mem 2024-01-04 07:41:04 +05:30
Harendra Kumar
55cc5d051e Change splice to spliceUnsafe
splice reallocates every time, while we can just allocate the array once.
2024-01-04 06:55:20 +05:30
Harendra Kumar
3b0efcfc48 Add a well-typed, efficient Path module 2024-01-03 11:24:08 +05:30
Harendra Kumar
9508d4144a Remove unnecessary realloc condition.
splice takes care of the realloc if necessary.
2023-12-30 06:20:33 +05:30
Harendra Kumar
ce908cfe81 Add a note about OS specific path encoding/handling 2023-12-28 23:51:25 +05:30
Harendra Kumar
f0f9841b25 Add chngelog entry for array Eq instance 2023-12-28 01:20:44 +05:30
Harendra Kumar
f7559e75f7 Add TH macro fixup entry in changelog 2023-12-28 01:07:24 +05:30
Harendra Kumar
b3af2b9445 Move docspec test to circle-ci 2023-12-27 08:43:25 +05:30
Harendra Kumar
6b3a8c4a47 Move the ArrayStream splicing code to MutArray module 2023-12-27 08:29:22 +05:30
Harendra Kumar
ec11426699 Move chunksOfRange to MutArray module 2023-12-27 08:29:22 +05:30
Harendra Kumar
3bab5b790c Add some notes about parseBreak op in ArrayStream 2023-12-27 08:29:22 +05:30
Harendra Kumar
f50789e27c Fix splitOn to use MutArray splicing for perf 2023-12-27 08:29:22 +05:30
Harendra Kumar
73c112d0ee Use spliceCopy instead of splice for immutable arrays 2023-12-27 08:29:22 +05:30
Harendra Kumar
23750f38a8 Fix the Eq instance of Array
Byte comparison may not be correct for all types.
2023-12-27 08:29:22 +05:30
Harendra Kumar
51d99c947b Do not make a copy of the array in breakOn 2023-12-27 08:29:22 +05:30
Harendra Kumar
7a8b3627e7 Use array copy (memcpy) instead of stream copy
For better performance.
2023-12-27 08:29:22 +05:30