Commit Graph

1356 Commits

Author SHA1 Message Date
Evgenii Kliuchnikov
0bef8a6936 clarify that prepared dictionaries are "lean"
PiperOrigin-RevId: 811236534
2025-09-25 01:27:28 -07:00
Evgenii Kliuchnikov
9686382ff3 PY: continue renovation of extension
Fixed unchecked malloc for "tail" input data.
Fixed inconsistencies in docstrings.

Rewritten "growable buffer" to C-code, so it could run without acquiring GIL.

Breaking changes:
 - native object allocation failures now handled at object creation time
 - some lower level exceptions (e.g. OOM) are not shadowed by brotli.error

PiperOrigin-RevId: 810813664
2025-09-24 03:52:44 -07:00
Evgenii Kliuchnikov
85d46ce6b5 Drop finalize()
Now it is solely embedders responisbility to close things that hold native resources. No more "safety net".

Consider "try-with-resources". For longer lasting items (e.g. native PreparedDictionary) use Cleaner as a last resort.

PiperOrigin-RevId: 807584792
2025-09-16 01:23:46 -07:00
Evgenii Kliuchnikov
41a22f07f2 modernize PY3 class definition
PiperOrigin-RevId: 804460135
2025-09-08 09:15:53 -07:00
Evgenii Kliuchnikov
98a89b1563 temporary rollback
PiperOrigin-RevId: 803462595
2025-09-05 07:57:59 -07:00
Evgenii Kliuchnikov
35d4992ac8 PY: reformat _brotli.c
PiperOrigin-RevId: 803412055
2025-09-05 04:42:06 -07:00
Copybara-Service
3287b89bd4 Merge pull request #1257 from domysh:master
PiperOrigin-RevId: 803020625
2025-09-04 07:39:05 -07:00
Copybara-Service
4bf850a56a Merge pull request #1089 from SpaceIm:macos-relocatable
PiperOrigin-RevId: 803012803
2025-09-04 07:14:02 -07:00
Copybara-Service
0557c81d1e Merge pull request #1307 from google:dependabot/github_actions/actions/cache-4.2.4
PiperOrigin-RevId: 802995746
2025-09-04 06:14:21 -07:00
Eugene Kliuchnikov
f5e1f0641d Merge branch 'master' into macos-relocatable 2025-09-04 14:52:06 +02:00
Eugene Kliuchnikov
0903aad0d7 Update setup.py 2025-09-04 14:50:43 +02:00
Eugene Kliuchnikov
447385795f Update setup.py 2025-09-04 14:48:46 +02:00
Eugene Kliuchnikov
8fea9e31c8 Merge branch 'master' into master 2025-09-04 14:42:48 +02:00
Evgenii Kliuchnikov
20ed1374ff add decoder static init
PiperOrigin-RevId: 802957201
2025-09-04 03:58:47 -07:00
Evgenii Kliuchnikov
310f2119cf pull common static init header
PiperOrigin-RevId: 801763621
2025-09-01 04:46:12 -07:00
Evgenii Kliuchnikov
30c7d2f97d split prefix.h to .h/.cc/_inc.h
PiperOrigin-RevId: 801742168
2025-09-01 03:24:08 -07:00
Eugene Kliuchnikov
79ea7296d4 Merge branch 'master' into master 2025-08-29 15:06:37 +02:00
Eugene Kliuchnikov
7880aa1307 Merge branch 'master' into dependabot/github_actions/actions/cache-4.2.4 2025-08-29 14:48:15 +02:00
Evgenii Kliuchnikov
25190700e2 use BROTLI_COLD in enc
PiperOrigin-RevId: 800516878
2025-08-28 10:17:30 -07:00
Evgenii Kliuchnikov
cb29dec4ed Introduce BROTLI_COLD
PiperOrigin-RevId: 799674933
2025-08-26 12:48:16 -07:00
Evgenii Kliuchnikov
643b22949d AI ate my code
PiperOrigin-RevId: 799658697
2025-08-26 12:03:48 -07:00
Evgenii Kliuchnikov
e7b0c08b51 move bulky generated constants out of main code
PiperOrigin-RevId: 799083333
2025-08-25 05:36:04 -07:00
Evgenii Kliuchnikov
9a4ba5932b internal change
PiperOrigin-RevId: 795452145
2025-08-15 06:18:41 -07:00
Evgenii Kliuchnikov
3cc6172f58 uninline ShannonEntropy/BitsEntropy
PiperOrigin-RevId: 794966726
2025-08-14 03:50:40 -07:00
Evgenii Kliuchnikov
103b25fb1e explicitly specify model for relocatable variables
PiperOrigin-RevId: 794473371
2025-08-13 02:11:12 -07:00
dependabot[bot]
ea7d6c3737 Bump actions/cache from 4.2.3 to 4.2.4
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](5a3ec84eff...0400d5f644)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 4.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 13:48:51 +00:00
Evgenii Kliuchnikov
7b345944d6 adjust BROTLI_TEST effects
PiperOrigin-RevId: 793535397
2025-08-11 01:28:09 -07:00
Evgenii Kliuchnikov
6a4c96b110 more portable emergency exit
PiperOrigin-RevId: 792046166
2025-08-07 01:31:31 -07:00
Evgenii Kliuchnikov
29e040b8cb use static init to reduce encoder library size
PiperOrigin-RevId: 791661871
2025-08-06 06:18:01 -07:00
Evgenii Kliuchnikov
bf6231d685 Introduce static init
PiperOrigin-RevId: 791228365
2025-08-06 06:17:48 -07:00
Copybara-Service
377afe9e4f Merge pull request #1298 from Cycloctane:master
PiperOrigin-RevId: 791171172
2025-08-05 05:34:44 -07:00
Eugene Kliuchnikov
bf2e456437 Merge branch 'master' into master 2025-08-05 14:03:21 +02:00
Evgenii Kliuchnikov
8a7201c602 fix some includes
PiperOrigin-RevId: 791124445
2025-08-05 02:49:40 -07:00
Evgenii Kliuchnikov
12203bb586 Extract Hash14/15 to hash_base
PiperOrigin-RevId: 791061237
2025-08-04 23:30:28 -07:00
Evgenii Kliuchnikov
172fe58fab Forward imports in types.h
PiperOrigin-RevId: 790683957
2025-08-04 04:03:20 -07:00
Cycloctane
bf88e69b29 Update CHANGELOG.md 2025-07-29 22:05:14 +08:00
Evgenii Kliuchnikov
a47d747506 Roll back:
Enable shared_dictionary for quality 3 and 4.

PiperOrigin-RevId: 781976993
2025-07-11 07:39:05 -07:00
Copybara-Service
564ddad5ac Merge pull request #1270 from google:dependabot/github_actions/ossf/scorecard-action-2.4.2
PiperOrigin-RevId: 781920549
2025-07-11 04:00:51 -07:00
Copybara-Service
51a9318883 Merge pull request #1281 from google:dependabot/github_actions/softprops/action-gh-release-2.3.2
PiperOrigin-RevId: 781919147
2025-07-11 03:54:31 -07:00
Copybara-Service
400b1e1e6c Merge pull request #1294 from lowkeyrossi:support_arm64
PiperOrigin-RevId: 781918885
2025-07-11 03:53:27 -07:00
Eugene Kliuchnikov
5f84f3b412 Merge branch 'master' into dependabot/github_actions/ossf/scorecard-action-2.4.2 2025-07-11 12:49:30 +02:00
Eugene Kliuchnikov
39d91926a1 Merge branch 'master' into dependabot/github_actions/softprops/action-gh-release-2.3.2 2025-07-11 12:48:51 +02:00
newyork_loki
15fb8bfedc Merge branch 'master' into support_arm64 2025-07-11 07:55:55 +05:30
Copybara-Service
b80c3ad14f Merge pull request #1292 from radarhere:patch-1
PiperOrigin-RevId: 781416466
2025-07-10 01:16:46 -07:00
Eugene Kliuchnikov
8ab7027a3a Merge branch 'master' into patch-1 2025-07-09 22:15:39 +02:00
newyork_loki
61ebc6cbad Add support for release builds for Windows ARM64 2025-07-09 18:02:34 +05:30
newyork_loki
ab9b7b07c7 Add support for release builds for Windows ARM64 2025-07-09 18:00:11 +05:30
Brotli
42c5139b80 Enable shared_dictionary for quality 3 and 4.
PiperOrigin-RevId: 780946946
2025-07-09 02:34:01 -07:00
Andrew Murray
81fb9d557c Fixed typo 2025-07-08 22:47:36 +10:00
Brotli
434b582d49 Fix compilation errors when BROTLI_DEBUG is defined.
PiperOrigin-RevId: 777494216
2025-06-30 03:32:03 -07:00