Commit Graph

596 Commits

Author SHA1 Message Date
Ranjeet Kumar Ranjan
21d0692772 Combine test-core and bench-core flags to a single use-streamly-core flag 2022-08-23 09:28:25 +05:30
Ranjeet Ranjan
64e471b91a
Move unboxed array tests under test-core flag (#1797) 2022-08-22 22:01:50 +05:30
Harendra Kumar
8dd618b1ba Increase heap limit for building Parser tests 2022-08-20 23:05:13 +05:30
Harendra Kumar
8e03301862 Add tests for Alternative instance of ParserD 2022-08-20 23:05:13 +05:30
Harendra Kumar
c0769668d9 Change the type of parser "extract" to Step 2022-08-20 23:05:13 +05:30
Ranjeet Ranjan
a40431740c
Replace SerialT with Stream for remaining modules (#1777)
* Replace SerialT to Stream for remaining modules

* Reduce the usage of IsStream in benchmarks

And some other refactoring.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 11:13:11 +05:30
Ranjeet Ranjan
ec760805c9
Modularize test cases (#1707)
* Modularize test cases

* Make it build with test-core flag

And several other changes.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 00:45:57 +05:30
Ranjeet Kumar Ranjan
18a226b9f0 Array.Foreign -> Array.Unboxed in tests and benchmarks & intenals
Co-authored-by: Ranjeet <ranjeet@composewell.com>
2022-08-17 15:09:42 +05:30
Harendra Kumar
ffb1dfcc90 Update default.nix for bench/test-runner 2022-08-09 01:59:59 +05:30
Harendra Kumar
af9e344557 Remove stale Prim Array targets from test-runner 2022-08-09 01:59:59 +05:30
Harendra Kumar
9ed94a6a09 Implement many2, map2
* crossWith and many can be implemented in terms of many2
* rename mapmWithInput to mapM2
* add map2
2022-08-07 13:25:40 +05:30
Ranjeet Kumar Ranjan
26b78c6e89 Deprecate Streamly.Data.Array.Foreign module
Rename it to Streamly.Data.Array.Unboxed
2022-08-06 00:38:23 +05:30
Ranjeet Kumar Ranjan
3dc72698cf Replace SerialT with Stream 2022-07-31 02:48:10 +05:30
Adithya Kumar
4015d54128 Remove prim arrays and all related code 2022-07-31 02:43:44 +05:30
Adithya Kumar
3d8ffee684 Fix the test case for Parser.takeFramedByEsc_ 2022-07-27 17:43:18 +05:30
Adithya Kumar
3811e683ce Improve array combinators to work with unpinned arrays 2022-07-27 17:24:59 +05:30
Harendra Kumar
c366e2d5e2 Use unfolds in all stream generation ops
Based on a build flag. We want to benchmark how these operations perform
when unfolds are used. This is to investigate if we can replace these
ops with just unfolds or implement these in terms of unfolds to improve
modularity.

Increase memory for Split benchmarks for use-unfolds flag.
2022-07-19 02:45:34 +05:30
Adithya Kumar
aaa279c9b2 Add tests for unboxed ring array 2022-07-11 18:51:43 +05:30
Adithya Kumar
c361a315e3 Add some test cases for unboxed array 2022-07-08 16:51:03 +05:30
Ranjeet Kumar Ranjan
8ac1ad15c2 Implement nub as Fold 2022-07-04 17:55:33 +05:30
Adithya Kumar
3e76123e53 Add couple of test cases for foreign mutable array 2022-06-30 17:51:39 +05:30
Adithya Kumar
adc2e75b5d Abstract out Unboxing helpers and comment out IOVec code 2022-06-23 16:09:57 +05:30
Adithya Kumar
0d2ce6ca76 Deprecate variance and stdDev in folds 2022-06-11 19:18:01 +05:30
Adithya Kumar
1ee11e87ec Increase the build memory limit for test:Data.Parser 2022-06-09 21:55:06 +05:30
Adithya Kumar
f3b07c2922 Add an option to preserve quotes in wordQuotedBy 2022-06-09 21:55:06 +05:30
Harendra Kumar
d36f02ff12 Implement min/max/range without dequeue 2022-06-09 16:46:13 +05:30
Ishan Bhanuka
9d68f58a21 Implement concatSequence for parser
concatSequence collects sequential parses of
parsers in a serial stream using a fold.

* Wrapper and internal implementation
* Benchmark and tests
* Documentation update
2022-05-30 12:07:09 +05:30
Harendra Kumar
2aae2da54c Add Word8 stream splitting tests 2022-05-29 00:29:39 +05:30
Ranjeet Kumar Ranjan
509fc06729 Fix takeFramedByEsc_ test case 2022-05-28 23:58:02 +05:30
Harendra Kumar
e715e4a115 Rename fold_/parse_/foldOn
fold_ to foldBreak
foldOn to foldContinue
parse_ to parseBreak

Use Parser instead of ParserD in parseBreak API
2022-05-19 23:57:56 +05:30
Harendra Kumar
420f387a20 Deprecate the "next" parser, use "one" fold instead 2022-05-19 23:26:49 +05:30
Ranjeet Kumar Ranjan
93e33d3292 Add parser tests cases
* takeEndBy
* takeEndByEsc
* takeFramedByEsc
* takeStartBy_
2022-05-12 16:59:07 +05:30
Harendra Kumar
9e034c738e Add takeWhileP test 2022-05-09 13:02:49 +05:30
Harendra Kumar
6ed0c935c5 Rename some parser APIs, reorg the export list
And add some proposed commented APIs.
2022-05-08 10:51:52 +05:30
Harendra Kumar
0409d4bbec Add a test for deintercalate 2022-05-06 16:51:30 +05:30
Harendra Kumar
e4418a5f06 Fix dependencies and package names
For bench-runner and test-runner
2022-05-06 16:51:30 +05:30
Harendra Kumar
b7b3aa8d02 Rename benchmark driver exe to bench-runner
To keep it consistent with test-runner for test driver
2022-04-28 23:35:26 +05:30
Harendra Kumar
5435aa1b16 Use Haskell based test driver
Replace bin/test.sh with a Haskell implementation
2022-04-28 23:13:45 +05:30
Ranjeet Kumar Ranjan
a849812d99 Maintain a list of top w elements in the stream 2022-04-22 19:55:41 +05:30
Ranjeet Kumar Ranjan
8569fdd383 Fix test case for takeBetween 2022-04-21 19:30:57 +05:30
Harendra Kumar
02578386da Use the demux input to determine the fold
We may want to use the entire value to determine the fold and not just
the key. For example, we may have the key as an Int that uniquely
determines the fold (for example a connection/request id). Once the
fold starts we can always lookup the fold using this key. However, to
determine what fold to use initially we may need more information than
just the request-id (e.g. the type of the message).
2022-04-11 18:41:37 +05:30
Adithya Kumar
5b135b5bfe Symlink a few moved dev files 2022-04-11 01:16:09 +05:30
Adithya Kumar
72a0199c67 Move the README of benchmarks and tests into the developer docs 2022-04-11 01:16:09 +05:30
Harendra Kumar
800ae8a8f8 Use monadic action to generate fold in demux* 2022-04-06 17:43:15 +05:30
Ranjeet Kumar Ranjan
d31f3329f1 Rename some unfold APIs 2022-04-06 17:41:47 +05:30
Ranjeet Kumar Ranjan
4f70b0d4e6 Rename Socket BufferOf APIs 2022-04-03 15:30:56 +05:30
Harendra Kumar
6b2f1c1669 Change demux fold APIs and implementations 2022-04-02 03:32:42 +05:30
Ranjeet Kumar Ranjan
7886550a71 Add bubbleAsc function
Fix review comments

Fix last element

Fix empty arraay check
2022-04-01 14:40:43 +05:30
Ranjeet Kumar Ranjan
3a59974ed8 Rename unfold scan to postscan, add benchmark, test 2022-03-25 15:18:27 +05:30
Ranjeet Kumar Ranjan
3b3bda74fb Add a test for Fold.postscan
Fix review comments

Fix review comments
2022-03-25 15:09:57 +05:30