-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make the should_deflate flag part of the state (#2) To control if it should or not deflate, the library was accepting a flag on kpl_agg:finish/2. But, this wasn't applied to aggregated records created implicitly when adding new items. This PR makes the should_deflate part of the state, and allow it to be initialized using kpl_agg:new/1 (default is to not deflate). Note: It has a backward incompatible change, as kpl_agg:finish/2 is removed. * Avoid cuadratic complexity, keep track of current list length (#3) Do not calculate length(List) on each item addition, keep a track of the current buffer length. * Remove dialyzer warnings * Fix #stream_record.timestamp type
- Loading branch information
1 parent
b9cd2f3
commit 25d28e6
Showing
5 changed files
with
46 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
{applications, | ||
[kernel, | ||
stdlib, | ||
crypto, | ||
erlexec, | ||
jiffy, | ||
b64fast]}, | ||
|
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