-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(codecv2): add zstd compression and increase chunks num per batch…
… post compression (#2) * feat: add codecv0 and codecv1 * feat: add codecv0 and codecv1 * feat(codecv1): add zstd compression and increase chunks num per batch post compression * add zstd compression * remove .so files * add codecv2 * fix * fix lint * add .so files * add codecv2 type * tweak * Apply suggestions from code review Co-authored-by: Péter Garamvölgyi <[email protected]> * remove timezone setting * refactor * fix * Apply suggestions from code review Co-authored-by: georgehao <[email protected]> * small fix * refactor * rename rs to libzstd * use early return * change DecodeDABlock to receiver form * use enum as versions, removing constant * remove init() and log.Crit() * add gas estimation * tweak * build .so files on-the-fly * fix CI * use default path to compile and link * remove libzstd/rs_zstd.h and fix CI * rename * rename * rename * revert * add -L/lib/ -Wl,-rpath=/lib * temp try * try * add CGO_LDFLAGS * fix * try fix * revert * remove cp to /usr/local/lib * tweak * fix * try deleting LD_LIBRARY_PATH * revert * remove Dockerfile * tweak * remove txTypeTest * decrease the 256 bytes extra buffer to 128 bytes * add a comment --------- Co-authored-by: Péter Garamvölgyi <[email protected]> Co-authored-by: georgehao <[email protected]>
- Loading branch information
1 parent
6e111a4
commit db04f5e
Showing
21 changed files
with
6,083 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
*.exe | ||
*.exe~ | ||
*.dll | ||
*.a | ||
*.so | ||
*.dylib | ||
|
||
|
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
# da-codec | ||
# da-codec | ||
|
||
## Running unit tests | ||
``` | ||
docker pull scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 --platform linux/amd64 | ||
docker run -it --rm -v "$(PWD):/workspace" -w /workspace scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 | ||
cd libzstd | ||
make libzstd | ||
cd .. | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/libzstd | ||
export CGO_LDFLAGS="-L$(pwd)/libzstd -Wl,-rpath,$(pwd)/libzstd" | ||
go test -v -race ./... | ||
``` |
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
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
Oops, something went wrong.