Copybara-Service
00fbfeb647
Merge pull request #136 from oshogbo:zstd_type
...
PiperOrigin-RevId: 439542219
Change-Id: Ie6bdff05b5aa50c6fccb0786b073240e72c4b215
2022-04-05 04:24:50 -07:00
Mariusz Zaborski
de56ca399a
contrib: use constexpr for kFileMaxSize
...
Use constexpr to inform compiler that it is possible to evaluate
variable at compile time.
2022-03-06 06:12:01 -05:00
Demi Marie Obenour
eacd8c8097
Remove trailing semicolons from macros
...
The semicolons should be in the code that uses the macros.
2022-03-05 11:42:04 -05:00
Copybara-Service
4024694eb6
Merge pull request #112 from oshogbo:zstd_opt
...
PiperOrigin-RevId: 430179725
Change-Id: Ic3c93a51a199eaf087cea2e58c819eb07bf52a1a
2022-02-22 04:21:24 -08:00
Mariusz Zaborski
dc43384516
ZStandard: Optimize passing the memory
...
In the case of decompression, we are using the same chunk of memory
twice. The first is to obtain the size of decompressed data, and
the second is to decompress it. In the current code, we are copying
the chunk of memory twice. The memory doesn't change between
the calls, so there is no point in copying it over and over.
Let's synchronize memory only during first call.
2022-02-16 07:29:37 -05:00
Copybara-Service
585e55a1e0
Merge pull request #108 from oshogbo:zstd_fd_pr
...
PiperOrigin-RevId: 427469394
Change-Id: I789b45066800af5a29cbf33313cd7a4fabd56be3
2022-02-09 07:47:35 -08:00
Mariusz Zaborski
5c154af744
ZStandard: introduce a wrapper
...
The goal is to use a file descriptor as an input for ZStandard
library. Thanks to that we shouldn't send a chunk of memory over
expensive protocol.
2022-02-08 13:11:13 -05:00
Mariusz Zaborski
d2a8c8a1ea
ZStandard: minor style fixes
2022-02-02 16:53:47 -05:00
Mariusz Zaborski
d0ce037fa2
ZStandard: Add additional check of error code
2022-02-02 15:54:54 -05:00
Mariusz Zaborski
05102f2c41
ZStandard: use seprate structure for (de)compression
2022-02-02 15:54:54 -05:00
Copybara-Service
570898542b
Merge pull request #95 from oshogbo:zstd
...
PiperOrigin-RevId: 425893255
Change-Id: I6760fe1ab7734f1a27dd65e4c761c57961306a85
2022-02-02 08:38:34 -08:00
Mariusz Zaborski
d1889dcde4
Sandbox ZStandard
2022-02-02 09:34:25 -05:00