arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.02618cs.SE
收藏

捆绑代码与执行的依赖关系

Dependencies that Bundle Code and Execution

KTH Royal Institute of Technology(皇家理工学院)

Aman Sharma, Martin Monperrus

AI总结:

研究应用程序依赖关系,提出LIBCACHE系统,通过包注册表分发依赖项的执行缓存,与编译代码一同作为一等工件,评估显示其加速应用启动,证明执行缓存可分发及合并缓存可扩大启动覆盖范围。

摘要:

应用由许多依赖项构建而成。每个依赖项由包注册表分发,但仅包含编译代码,不包含执行状态,运行时每次启动都需从头重建。执行缓存可记录准备结果,但现有系统未将执行状态发布到注册表供下游消费者重用。我们引入LIBCACHE,首个通过包注册表分发每个依赖项执行缓存的系统……

英文摘要:

Applications are built from many dependencies. Each dependency is distributed by package registries but it only contains compiled code and does not ship execution state, so runtimes rebuild that state from scratch on every startup. Execution caching records this preparation result so subsequent starts can skip it, but no existing system publishes execution state to a registry for downstream consumers to reuse. We introduce LIBCACHE, the first system to distribute per-dependency execution caches through a package registry as first-class artifacts alongside compiled code. Each library maintainer produces an execution cache from the library's own test suite and publishes it to Maven Central alongside the JAR. At application build time, LIBCACHE merges all per-dependency caches into a single unified cache that covers the classes exercised across every dependency's test suite. We evaluate LIBCACHE on three real-world Java projects across twelve workloads. LIBCACHE speeds up application startup by up to 1.91x and outperforms a cache built from a single workload in 10 of 12 workloads, with the largest average gain for batik (1.60x vs. 1.27x). Cache production adds 10-47% to build time for applications, and execution caches average 18x the size of the corresponding JAR. Our main contribution is LIBCACHE, which establishes that execution caches are distributable supply chain artifacts and that merging per-dependency caches delivers broader startup coverage than any single observation run.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑