Commit Graph

10 Commits

Author SHA1 Message Date
jxxghp
0297216794 refactor(types): preserve memory decorator call signatures 2026-10-16 15:15:17 +08:00
freeman
f3ad81b39e style: apply safe ruff auto-fixes and exempt startup late imports
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.

app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.

Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 13:29:09 +08:00
InfinityPacer
143ed49de0 docs(runtime): drop redundant allocator comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 18:20:24 +08:00
InfinityPacer
ecafd4ce14 docs(runtime): trim allocator background thread docstring
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 18:20:24 +08:00
InfinityPacer
7191b23555 fix(runtime): strip inherited jemalloc background thread config for subprocesses
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 18:20:24 +08:00
InfinityPacer
31ca107e41 fix(docker): enable jemalloc background thread only in the main process
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 18:20:24 +08:00
InfinityPacer
c5a57dbd8c perf(runtime): release idle pool threads' allocator caches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 17:30:52 +08:00
InfinityPacer
9af903e677 perf(memory): return idle allocator pages to the OS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:33:53 +08:00
jxxghp
8072b7d78f Refactor application architecture and compatibility boundaries 2026-09-13 12:53:00 +08:00
jxxghp
369d7d6448 refactor: reorganize backend module boundaries 2026-08-14 19:53:33 +08:00