Commit 2013045
zlib: add dictionary support to zstdCompress and zstdDecompress
Adds optional dictionary support to zlib’s zstdCompress and
zstdDecompress APIs. This enables better compression ratios when the
dictionary matches expected input structure or content patterns.
The implementation allows passing a `dictionary` buffer through the
options object. Support was added to both streaming and convenience
methods. Tests and documentation were also updated to reflect this new
capability.
Fixes: #59105
PR-URL: #59240
Reviewed-By: Anna Henningsen <[email protected]>1 parent e79c93a commit 2013045
File tree
4 files changed
+79
-7
lines changed- doc/api
- lib
- src
- test/parallel
4 files changed
+79
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1072 | 1075 | | |
1073 | 1076 | | |
1074 | 1077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
900 | 901 | | |
| 902 | + | |
901 | 903 | | |
| 904 | + | |
902 | 905 | | |
903 | 906 | | |
904 | 907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
| |||
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
352 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
875 | 878 | | |
876 | 879 | | |
877 | 880 | | |
878 | | - | |
879 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
880 | 885 | | |
881 | 886 | | |
882 | 887 | | |
| |||
904 | 909 | | |
905 | 910 | | |
906 | 911 | | |
907 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
908 | 925 | | |
909 | 926 | | |
910 | 927 | | |
| |||
1509 | 1526 | | |
1510 | 1527 | | |
1511 | 1528 | | |
1512 | | - | |
| 1529 | + | |
| 1530 | + | |
1513 | 1531 | | |
1514 | 1532 | | |
1515 | 1533 | | |
1516 | 1534 | | |
1517 | 1535 | | |
1518 | 1536 | | |
1519 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1520 | 1549 | | |
1521 | 1550 | | |
1522 | 1551 | | |
| |||
1549 | 1578 | | |
1550 | 1579 | | |
1551 | 1580 | | |
1552 | | - | |
| 1581 | + | |
| 1582 | + | |
1553 | 1583 | | |
1554 | 1584 | | |
1555 | 1585 | | |
1556 | 1586 | | |
1557 | 1587 | | |
1558 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1559 | 1599 | | |
1560 | 1600 | | |
1561 | 1601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments