-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement stimes more efficiently (#301)
* Adds stimes implementation to strict ByteString * Adds stimes to Lazy ByteString * Actually make Lazy stimes work * Strict stimes now calls memcpy log n instead of n times * Correct fill_from capitalization * Throw error on non negative n in strict * expect positive multiplier in lazy stimes * Make strict stimes work for n=0 * Add n=0 case to Lazy stimes again * non-negative -> positive Co-authored-by: Bodigrim <[email protected]> * non-negative -> positive 2 Co-authored-by: Bodigrim <[email protected]> * Add test cases for stimes * positive n for stimes precondition in tests * Use QuickCheck NonNegative * Swap memcpy arguments * Add semigroups to build-depends in tests * Only use semigroups in tests when base > 490 * Restrict semigroup import to base>=490 * Use mempty and make more ledgible docs * Optimize strict times * Guard Lazy Empty case for greater than 0 * Handle n < 0 better * Swap guard cases * Added CPP to Pragmas Co-authored-by: Bodigrim <[email protected]>
- Loading branch information
Showing
3 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters