adblock: update 4.5.6-2 master
authorDirk Brenken <redacted>
Mon, 22 Jun 2026 19:06:07 +0000 (21:06 +0200)
committerDirk Brenken <redacted>
Mon, 22 Jun 2026 19:06:07 +0000 (21:06 +0200)
commitc2a00f2db015c8b892ba2568a17e1bb33710fab2
tree48b500d62a7f2bf1583c08836fb5a5f371bebb5a
parentf5160c8aa17b9373f1260edd17752fba39995569
adblock: update 4.5.6-2

- add f_mem() helper to read MemAvailable from /proc/meminfo,
  replacing three duplicated inline reads in f_load, f_dns and f_jsnup
- cap the auto-detected CPU core count by available memory in f_load:
  adb_cores is limited to MemAvailable / 48 (MiB per job), floored to at least 1 core;
  this bounds the number of feeds processed in parallel on constrained devices,
  a user-set adb_cores is still honored as a ceiling (the cap only ever lowers it).
- derive the GNU sort buffer size from available memory
- readme update:
  - added a "low memory systems" recommendation to use
    the zram-swap package (compressed swap) with a swappiness hint,
    plus a sizing rule of thumb — this works for all DNS backends OOTB
  - significantly expanded the custom-feeds section (all JSON fields, rule parameters, etc.)

Signed-off-by: Dirk Brenken <redacted>
net/adblock/Makefile
net/adblock/files/README.md
net/adblock/files/adblock.sh
git clone https://git.99rst.org/PROJECT