Skip to content

[jssrc2cpg] Bump astgen 3.34.0 -> 3.41.0#5914

Open
max-leuthaeuser wants to merge 2 commits intomasterfrom
max/updateAstgen
Open

[jssrc2cpg] Bump astgen 3.34.0 -> 3.41.0#5914
max-leuthaeuser wants to merge 2 commits intomasterfrom
max/updateAstgen

Conversation

@max-leuthaeuser
Copy link
Copy Markdown
Contributor

@max-leuthaeuser max-leuthaeuser commented Apr 1, 2026

Key canges in astgen since 3.34.0:

  • 3.36.0: Add readable check to src dir
  • 3.38.0: Add add guard for large/generated files (size >5MB, >50K lines, >10K byte lines), and prevent OOM on emscripten checks
  • 3.39.0: Fix OOM on large JS/TS projects: remove NoTruncation type flag, add MAX_TYPE_STRING_LENGTH guard, skip type resolution for keyword/punctuation nodes
  • 3.40.0: Reduce memory pressure and redundant I/O for large projects: merge file content checks into single pass, stream AST serialization in 64KB chunks, stream typemap serialization directly from Map entries
  • 3.41.0: More performance fixes:
    • pack (start,end) into a single number key for TypeMap instead of allocating a "start:end" string per node (~4x smaller keys)
    • use readdirp entry.stats to avoid redundant statSync; read files actually only exactly once
    • deduplicate mkdirSync calls per output directory

Key canges in astgen since 3.34.0:
- 3.36.0: Add readable check to src dir
- 3.38.0: Add add guard for large/generated files (size >5MB, >50K lines, >10K byte lines) to prevent OOM on emscripten checks
- 3.39.0: Fix OOM on large JS/TS projects: remove NoTruncation type flag, add MAX_TYPE_STRING_LENGTH guard, skip type resolution for keyword/punctuation nodes
- 3.40.0: Reduce memory pressure and redundant I/O for large projects: merge file content checks into single pass, stream AST serialization in 64KB chunks, stream typemap serialization directly from Map entries
@max-leuthaeuser max-leuthaeuser changed the title [jssrc2cpg] Bump astgen 3.34.0 -> 3.40.0 [jssrc2cpg] Bump astgen 3.34.0 -> 3.4^.0 Apr 2, 2026
@max-leuthaeuser max-leuthaeuser changed the title [jssrc2cpg] Bump astgen 3.34.0 -> 3.4^.0 [jssrc2cpg] Bump astgen 3.34.0 -> 3.41.0 Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants