![]() ![]() ![]() The notion of cached compilation or remote cache has been around for a while now, but often it required the setup has not been easy. Read More… cached compilation for sbt May 6, 2020 Note: It shouldn’t require too much of sbt internal knowledge, but the target audience is advanced since this is more of an extended PR description. This post explores the details of the change. ![]() Problem 3: sbt 1.x used Ivy resolver as the cache abstration, but we’d like a more open design for remote cache backendĪs my december adventure 2023 project I decided to tackle the sbt 2.x remote cache feature in my free time.Problem 2: sbt 1.x has separate mechanism for disk cache and remote cache, but we would like one mechanism that build user can switch between local or remote cache.Problem 1: sbt 1.x implements remote caching for compile, and disk caching for some other tasks, but we would like a solution that custom tasks can participate.In March 2023, I jotted down RFC-1: sbt cache ideas to outline the current issues and a solution design. While this is promising, it’s a bit clunky and it works only for the compile task. reibitto has reported that “what was once 7 minutes to compile everything now takes 15 seconds.” Others have also reported 2x ~ 5x speedup. In 2020, I implemented cached compilation in sbt 1.x. This is a feature that I’ve been interested ever since heard about Blaze (now open sourced as Bazel). Read More… sbt 2.x remote cache introductionĪ remote cache, or a cloud build system, can speed up builds dramatically by sharing build results ( Mokhov 2018). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |