Skip to content
Preprint

Reducing Cold-Start Latency in Serverless Applications via Dynamic Slicing

Sep 2026 · 0 citations · 56 references
Computer Science

TL;DR

Across 31 applications on AWS Lambda, PyXtrim reduces cold-start latency by 21.7% and peak memory usage by 17.1% at the median, more than double the reduction achieved by the state of the art, while debloating each application in minutes.

Abstract

We present PyXtrim, a system that reduces the cold-start latency of serverless applications through debloating. We focus on Python, a dominant language for serverless applications whose dynamic features and extensive use of native extensions make traditional static debloating particularly challenging. PyXtrim frames debloating as a dynamic slicing problem, using the application's externally visible behavior as the slicing criterion. Everything outside the resulting slice is removed, both from the application and its dependencies. Our key technical contribution is that the slice is computed by a cross-language dynamic dependence engine that tracks data and control dependences across Python and native code and identifies operations that interact with the operating system, which form the slicing criterion. As a result, PyXtrim can effectively handle real-world applications that rely on dynamic features such as reflection, interoperate with native code and interact with system resources. Across 31 applications on AWS Lambda, PyXtrim reduces cold-start latency by 21.7% and peak memory usage by 17.1% at the median. This is more than double the reduction achieved by the state of the art, while debloating each application in minutes.

View source

Similar papers

Book Open access Oct 2026

Proxies All the Way Down: Bootstrapping a Userland Speculative Optimizer for the OpenSmalltalk VM

Self-supporting dynamic-language systems aim to lift core components otherwise implemented in the virtual machine up into userland to enable the expression and development of those core components at the same level and with the same tools as applications. Yet, bootstrapping components that are critical for userland sta...

Christoph Thiede, Marius Dörbandt, Eliot Miranda et al. · 0 citations
Book Open access Oct 2026

In-the-Wild JavaScript Dead-Code Elimination via HTTP Range Requests

JavaScript (JS) bloat is a major source of slow, data-inefficient web performance, as many sites ship large monolithic bundles with substantial unused code. Existing JS dead-code elimination techniques help but require server-side support and are therefore hard to deploy. This paper evaluates HTTP range requests as a c...

Ayush Pandey, Vladimir Sharkovski, Matteo Varvello et al. · 0 citations
Open access Oct 2026

EVALUATION OF SERVERLESS COLD START OPTIMIZATION TECHNIQUES

Cold start latency remains one of the main challenges in serverless computing, particularly for Function-as-a-Service (FaaS) applications operating under dynamic workloads. Runtime initialization, dependency loading, and resource allocation increase response latency and reduce system performance. Although numerous cold...

O. Kisseleva, К. К. Абдраманов, N. Vitaliy et al. · 0 citations
Jul 2026

Fugue: Online Elasticity for Distributed Stateful Stream Processing

Fugue is a novel, self-contained reactive protocol that provides seamless and resource-efficient elasticity and reaches comparable handover performance while avoiding continuous replication overhead, and is implemented in Apache Flink.

Yu-Qiu Zhang, Yun-Hao Mao, Hans-Arno Jacobsen · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.