[Lambda][Node.js] Pointer compression / memory-optimized runtime option for large bundles and source maps
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 196
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi Lambda team,
We hit a practical memory wall with Node.js Lambda and wanted to ask if pointer compression (or an equivalent runtime-level memory optimization) is on the roadmap for managed Node runtimes.
Our use case is a backend Lambda with a single-file minified bundle. Normal artifact size is ~7.6 MB. If we enable source maps for debugging (`NODE_OPTIONS=--enable-source-maps`), artifact size jumps to ~31.7 MB (`index.mjs` + `index.mjs.map`).
What we observed in real traffic tests:
- Runtime: Node.js 24.x
- Arch: arm64
- Memory: 256 MB
- Without source maps: cold starts are acceptable for our use case
- With source maps enabled: cold start increases, and we started seeing `Runtime.OutOfMemory` at 256 MB in the editor/debug environment
We can work around this by disabling source maps or increasing memory, but this is a tough tradeoff:
- disabling source maps hurts debuggability
- increasing memory increases cost for workloads that are otherwise lightweight
Request:
Could Lambda provide either:
1. managed Node runtimes with V8 pointer compression enabled, or
2. another runtime-level memory optimization path for Node workloads with large bundles/maps?
Even an experimental/runtime flag path would already help for debugging-heavy environments.
Thanks for considering this.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
L’issue ne mentionne aucun fichier du dépôt, test ou point d’entrée de l’implémentation. Commencez par examiner les observations concernant Node.js 24.x, arm64 et 256 MB, ainsi que la demande de pointer compression ou d’une option équivalente pour le runtime géré ; sa résolution nécessiterait une solution au niveau du runtime AWS Lambda ou une voie expérimentale documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, node.js
- Domaine
- backend, cloud
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100