github-actions[bot]
095fbf121f
chore: update proto/version to v2.3000.1038260195 ( #394 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-28 01:14:03 -03:00
github-actions[bot]
336ed64a44
chore: update proto/version to v2.3000.1038164556 ( #388 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-26 01:07:43 -03:00
Renato Alcara
9525f42cb2
perf: optimize history sync memory and CPU usage ( #385 )
...
* perf: optimize history sync memory and CPU usage
Aligns with Baileys upstream PR #2333 . Surgical port of
4 micro-optimizations + 2 test files. No collision with InfiniteAPI's
LID/PN, carousel, buttons, Bad MAC or app state sync resilience code.
Changes:
1. WAProto longToString/longToNumber: use native BigInt instead of
Long library division loops. ~4.6x faster per call (237ns -> 52ns).
BigInt.toString() delegates to V8 native C++. Same change applied
to fix-imports.js (template) and index.js (generated artifact) so
future regenerations stay in sync.
2. downloadHistory: stream-pipe createInflate instead of buffering
the full compressed payload then inflating. Cuts RSS peak ~50%
on 50MB history payloads.
3. processHistoryMessage: drop the { ...chat } shallow copy before
pushing to chats[]. The decoded protobuf object is not referenced
after the push.
4. downloadEncryptedContent transform: skip Buffer.concat when
remainingBytes is empty (the common case — chunks usually arrive
AES-aligned). ~19x faster per chunk (78ms -> 4ms over 25k chunks).
Tests:
- bigint-validation.test.ts (NEW): 32 parameterized cases covering
zero, MAX_SAFE_INTEGER boundary, max int64/uint64, negative values,
tricky bit patterns and powers of 2; plus 200-iter fuzz comparing
old Long vs new BigInt implementations for equivalence.
- proto-tojson-long.test.ts: kept the existing fork-only test for
string-in-Long-field graceful handling, appended 4 upstream tests
covering Long->string fast path, large unsigned > MAX_SAFE_INTEGER,
zero/small values and encode/decode roundtrip.
2026-04-25 15:11:34 -03:00
github-actions[bot]
e34ef5479d
chore: update proto/version to v2.3000.1038024963 ( #377 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-24 01:03:36 -03:00
github-actions[bot]
ac93080595
chore: update proto/version to v2.3000.1037953056 ( #375 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-23 01:01:23 -03:00
github-actions[bot]
76b2007f27
chore: update proto/version to v2.3000.1037847281 ( #373 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-22 01:00:13 -03:00
github-actions[bot]
937b26edcd
chore: update proto/version to v2.3000.1037753511 ( #368 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-21 01:01:09 -03:00
github-actions[bot]
7a7d92e3f8
chore: update proto/version to v2.3000.1037654574 ( #366 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-19 01:01:54 -03:00
github-actions[bot]
9c7dd0460c
chore: update proto/version to v2.3000.1037622359 ( #364 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-18 00:55:26 -03:00
github-actions[bot]
bb0cb90260
chore: update proto/version to v2.3000.1037539916 ( #358 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-17 01:01:19 -03:00
github-actions[bot]
90937af374
chore: update proto/version to v2.3000.1037162330 ( #356 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-12 01:00:42 -03:00
github-actions[bot]
8c61ce5f8e
chore: update proto/version to v2.3000.1037082622 ( #353 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-11 00:48:54 -03:00
github-actions[bot]
8df39c320e
chore: update proto/version to v2.3000.1037038379 ( #351 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-10 01:00:21 -03:00
github-actions[bot]
f473484852
chore: update proto/version to v2.3000.1036961647 ( #349 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-09 00:55:22 -03:00
github-actions[bot]
e3cf104b59
chore: update proto/version to v2.3000.1036861941 ( #347 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-08 00:56:53 -03:00
github-actions[bot]
bdbad50074
chore: update proto/version to v2.3000.1036772203 ( #345 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-07 00:56:17 -03:00
github-actions[bot]
3c3cf32027
chore: update proto/version to v2.3000.1036704126 ( #343 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-06 00:59:26 -03:00
github-actions[bot]
d6414f203b
chore: update proto/version to v2.3000.1036688876 ( #340 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-05 00:58:23 -03:00
github-actions[bot]
670ac582f9
chore: update proto/version to v2.3000.1036588306 ( #338 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-03 00:54:16 -03:00
github-actions[bot]
cb5e42c46e
chore: update proto/version to v2.3000.1036469328 ( #336 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-02 00:53:53 -03:00
github-actions[bot]
60302d73d5
chore: update proto/version to v2.3000.1036375660 ( #334 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-04-01 01:01:11 -03:00
github-actions[bot]
59cad85544
chore: update proto/version to v2.3000.1036244875 ( #332 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-31 02:02:42 -03:00
github-actions[bot]
fb8f51be52
chore: update proto/version to v2.3000.1036224280 ( #330 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-30 02:15:18 -03:00
github-actions[bot]
578efe945f
chore: update proto/version to v2.3000.1036204984 ( #328 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-29 02:03:52 -03:00
github-actions[bot]
9fd88b533d
chore: update proto/version to v2.3000.1036173230 ( #326 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-28 01:46:40 -03:00
github-actions[bot]
fdcbd3fc1d
chore: update proto/version to v2.3000.1036065881 ( #324 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-27 02:00:33 -03:00
github-actions[bot]
3050c329c5
chore: update proto/version to v2.3000.1036000318 ( #319 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-26 01:59:23 -03:00
github-actions[bot]
14f0321d7c
chore: update proto/version to v2.3000.1035715252 ( #317 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-23 01:56:01 -03:00
github-actions[bot]
2a321b881e
chore: update proto/version to v2.3000.1035693752 ( #314 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-22 01:46:05 -03:00
github-actions[bot]
1cbf1b18b7
chore: update proto/version to v2.3000.1035661795 ( #312 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-21 01:22:14 -03:00
github-actions[bot]
be44c5fdb0
chore: update proto/version to v2.3000.1035577069 ( #307 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-20 01:30:09 -03:00
github-actions[bot]
eecf6df2a2
chore: update proto/version to v2.3000.1035484955 ( #300 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-19 01:48:35 -03:00
github-actions[bot]
fc2122b11a
chore: update proto/version to v2.3000.1035370989 ( #298 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-18 01:49:58 -03:00
github-actions[bot]
dbc6dd6aed
chore: update proto/version to v2.3000.1035302375 ( #295 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-17 00:46:29 -03:00
github-actions[bot]
a25e6740fd
chore: update proto/version to v2.3000.1035216863 ( #288 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-16 00:58:19 -03:00
github-actions[bot]
64c73faab2
chore: update proto/version to v2.3000.1035198198 ( #286 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-15 00:56:35 -03:00
github-actions[bot]
9f8f74fc7a
chore: update proto/version to v2.3000.1035169204 ( #284 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-14 00:44:33 -03:00
github-actions[bot]
8fe71b03d5
chore: update proto/version to v2.3000.1035083696 ( #282 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-13 00:45:20 -03:00
github-actions[bot]
542b7a278d
chore: update proto/version to v2.3000.1034989030 ( #279 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-12 00:45:49 -03:00
github-actions[bot]
9daee4d8fd
chore: update proto/version to v2.3000.1034906703 ( #277 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-11 00:44:13 -03:00
github-actions[bot]
2236ef83a9
chore: update proto/version to v2.3000.1034813620 ( #275 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-10 00:44:00 -03:00
github-actions[bot]
ad81d1535d
chore: update proto/version to v2.3000.1034750325 ( #273 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-09 00:46:14 -03:00
github-actions[bot]
ad4f676e2b
chore: update proto/version to v2.3000.1034732001 ( #271 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-08 00:45:02 -03:00
github-actions[bot]
935484c790
chore: update proto/version to v2.3000.1034696150 ( #269 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-07 00:37:49 -03:00
github-actions[bot]
5382d03f93
chore: update proto/version to v2.3000.1034621774 ( #263 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-06 00:44:39 -03:00
github-actions[bot]
12c400cf1e
chore: update proto/version to v2.3000.1034530777 ( #261 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-05 00:45:05 -03:00
github-actions[bot]
8ea7f5434e
chore: update proto/version to v2.3000.1034427372 ( #258 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-04 00:43:59 -03:00
github-actions[bot]
a8d9e308bc
chore: update proto/version to v2.3000.1034302344 ( #254 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-03 00:46:23 -03:00
github-actions[bot]
f1b43e26a1
chore: update proto/version to v2.3000.1034293476 ( #249 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-02 00:45:19 -03:00
github-actions[bot]
f6e976f182
chore: update proto/version to v2.3000.1034274421 ( #241 )
...
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com >
2026-03-01 00:49:55 -03:00