<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in incremental_cache.rs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>0889323a - cranelift-codegen: rename most uses of std to core and alloc (#12237)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#0889323a</link>
        <description>cranelift-codegen: rename most uses of std to core and alloc (#12237)* rename most std uses to core and alloc* cargo fmt

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Sat, 03 Jan 2026 00:54:48 +0000</pubDate>
        <dc:creator>SSD &lt;96286755+the-ssd@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>0854775b - Couple of optimizations to the Cranelift incremental cache (#11186)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#0854775b</link>
        <description>Couple of optimizations to the Cranelift incremental cache (#11186)* Fix a couple of comments* Remove flags.predicate_view()It is a remenant of the old backend framework.* Avoid string conversions for hashing the TargetIsa* Remove func_body_lenIt is identical to buffer.data.len()* Introduce IsaFlagsHashKey

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Tue, 08 Jul 2025 16:11:24 +0000</pubDate>
        <dc:creator>bjorn3 &lt;17426603+bjorn3@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>5fe1c8e2 - Bump MSRV to 1.86.0 (#11142)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#5fe1c8e2</link>
        <description>Bump MSRV to 1.86.0 (#11142)Coupled with today&apos;s release of 1.88.0. Also update our nightly versionused in CI to the most recent nightly.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Fri, 27 Jun 2025 17:42:12 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>8a42768f - Update nightly used in CI (#10957)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#8a42768f</link>
        <description>Update nightly used in CI (#10957)A new lint was added to rustc so this updates the nightly used in CI andthen additionally fixes the lints that are firing.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Fri, 06 Jun 2025 18:06:28 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>90ac295e - Update Wasmtime to the 2024 Rust Edition (#10806)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#90ac295e</link>
        <description>Update Wasmtime to the 2024 Rust Edition (#10806)* Update Wasmtime to the 2024 Rust EditionNow that our MSRV supports the 2024 edition it&apos;s possible to make thisswitch. This commit moves Wasmtime to the 2024 Edition to keepup-to-date with Rust idioms and access many of the edition featuresexclusive to the 2024 edition.prtest:full* Reformat with the 2024 edition

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Mon, 19 May 2025 16:40:55 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>38d6fb62 - Fix more `clippy::doc_lazy_continuation` lints (#9105)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#38d6fb62</link>
        <description>Fix more `clippy::doc_lazy_continuation` lints (#9105)

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Tue, 13 Aug 2024 14:04:16 +0000</pubDate>
        <dc:creator>Bruce Mitchener &lt;bruce.mitchener@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>60539520 - Switch from `bincode` to `postcard` for serializing (#8476)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#60539520</link>
        <description>Switch from `bincode` to `postcard` for serializing (#8476)Wasmtime and Cranelift have a few miscellaenous use cases for &quot;just takethis Rust type and make it bytes&quot;, for example Wasmtime&apos;s serializationof internal metadata into a compiled module. Previously Wasmtime usedthe `bincode` crate for performing these tasks as the format wasgenerally optimized to be small and fast, not general purpose (e.g.JSON). The `bincode` crate on crates.io doesn&apos;t work on `no_std`,however, and with the work in #8341 that&apos;s an issue now for Wasmtime.This crate switches instead to the `postcard` crate. This crate islisted in Serde&apos;s documentation as:&gt; Postcard, a no_std and embedded-systems friendly compact binary&gt; format.While I&apos;ve not personally used it before it checks all the boxes werelied on `bincode` for and additionally works with `no_std`. Afterauditing the crate this commit then switches out Wasmtime&apos;s usage of`bincode` for `postcard` throughout the repository.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Thu, 25 Apr 2024 20:43:35 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>9ec02f9d - Decouple `serde` from its `derive` crate (#6917)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#9ec02f9d</link>
        <description>Decouple `serde` from its `derive` crate (#6917)By not activating the `derive` feature on `serde`, the compilation speedcan be improved by a lot. This is because `serde` can then compile inparallel to `serde_derive`, allowing it to finish compilation possiblyeven before `serde_derive`, unblocking all the crates waiting for`serde` to start compiling much sooner.As it turns out the main deciding factor for how long the compile time of aproject is, is primarly determined by the depth of dependencies ratherthan the width. In other words, a crate&apos;s compile times aren&apos;t affectedby how many crates it depends on, but rather by the longest chain ofdependencies that it needs to wait on. In many cases `serde` is part ofthat long chain, as it is part of a long chain if the `derive` featureis active:`proc-macro2` compile build script &gt; `proc-macro2` run build script &gt;`proc-macro2` &gt; `quote` &gt; `syn` &gt; `serde_derive` &gt; `serde` &gt;`serde_json` (or any crate that depends on serde)By decoupling it from `serde_derive`, the chain is shortened and compiletimes get much better.Check this issue for a deeper elaboration:https://github.com/serde-rs/serde/issues/2584For `wasmtime` I&apos;m seeing a reduction from 24.75s to 22.45s whencompiling in `release` mode. This is because wasmtime through `gimli`has a dependency on `indexmap` which can only start compiling when`serde` is finished, which you want to happen as early as possible sosome of wasmtime&apos;s dependencies can start compiling.To measure the full effect, the dependencies can&apos;t by themselvesactivate the `derive` feature. I&apos;ve upstreamed a patch for`fxprof-processed-profile` which was the only dependency that activatedit for `wasmtime` (not yet published to crates.io). `wasmtime-cli` andco. may need patches for their dependencies to see a similarimprovement.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Tue, 29 Aug 2023 16:02:06 +0000</pubDate>
        <dc:creator>Christopher Serr &lt;christopher.serr@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>7eb89140 - Chaos mode MVP: Skip branch optimization in MachBuffer (#6039)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#7eb89140</link>
        <description>Chaos mode MVP: Skip branch optimization in MachBuffer (#6039)* fuzz: Add chaos mode control planeCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: Skip branch optimization with chaos modeCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: Rename chaos engine -&gt; control planeCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* chaos mode: refactoring ControlPlane to be passed through the call stack by referenceCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Remo Senekowitsch &lt;contact@remsle.dev&gt;* fuzz: annotate chaos todosCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: cleanup control planeCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: remove control plane from compiler contextCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: move control plane into emit stateCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fuzz: fix remaining compiler errorsCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* fix tests* refactor emission state ctrl plane accessorsCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* centralize conditional compilation of chaos modeAlso cleanup a few straggling dependencies on cranelift-controlthat aren&apos;t needed anymore.Co-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* add cranelift-control to published cratesprtest:fullCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;* add cranelift-control to public cratesCo-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;---------Co-authored-by: Falk Zwimpfer &lt;24669719+FalkZ@users.noreply.github.com&gt;Co-authored-by: Moritz Waser &lt;mzrw.dev@pm.me&gt;Co-authored-by: Remo Senekowitsch &lt;contact@remsle.dev&gt;

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Wed, 05 Apr 2023 19:28:46 +0000</pubDate>
        <dc:creator>Remo Senekowitsch &lt;contact@remlse.dev&gt;</dc:creator>
    </item>
<item>
        <title>49bab6db - Ensure the sequence number doesn&apos;t leak out of Layout (#6061)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#49bab6db</link>
        <description>Ensure the sequence number doesn&apos;t leak out of Layout (#6061)Previously it could affect the PartialEq and Hash impls. Ignoring thesequence number in PartialEq and Hash allows us to not renumber allblocks in the incremental cache.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Mon, 20 Mar 2023 19:20:00 +0000</pubDate>
        <dc:creator>bjorn3 &lt;17426603+bjorn3@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>fc3c5d24 - Properly use the VersionMarker in CachedFunc (#6062)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#fc3c5d24</link>
        <description>Properly use the VersionMarker in CachedFunc (#6062)

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Mon, 20 Mar 2023 19:18:51 +0000</pubDate>
        <dc:creator>bjorn3 &lt;17426603+bjorn3@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>2c40c267 - Make sequence numbers local to instructions (#6043)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#2c40c267</link>
        <description>Make sequence numbers local to instructions (#6043)* Only allow pp_cmp within a single blockBlock order shouldn&apos;t matter for codegen and restricting pp_cmp to asingle block will allow making instruction sequence numbers local to ablock.* Make sequence numbers local to instructionsThis allows renumbering to be localized to a single block where previously itcould affect the entire function. Also saves 32bit of overhead per block.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Fri, 17 Mar 2023 20:53:21 +0000</pubDate>
        <dc:creator>bjorn3 &lt;17426603+bjorn3@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>8a9b1a90 - Implement an incremental compilation cache for Cranelift (#4551)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs#8a9b1a90</link>
        <description>Implement an incremental compilation cache for Cranelift (#4551)This is the implementation of https://github.com/bytecodealliance/wasmtime/issues/4155, using the &quot;inverted API&quot; approach suggested by @cfallin (thanks!) in Cranelift, and trait object to provide a backend for an all-included experience in Wasmtime. After the suggestion of Chris, `Function` has been split into mostly two parts:- on the one hand, `FunctionStencil` contains all the fields required during compilation, and that act as a compilation cache key: if two function stencils are the same, then the result of their compilation (`CompiledCodeBase&lt;Stencil&gt;`) will be the same. This makes caching trivial, as the only thing to cache is the `FunctionStencil`.- on the other hand, `FunctionParameters` contain the... function parameters that are required to finalize the result of compilation into a `CompiledCode` (aka `CompiledCodeBase&lt;Final&gt;`) with proper final relocations etc., by applying fixups and so on.Most changes are here to accomodate those requirements, in particular that `FunctionStencil` should be `Hash`able to be used as a key in the cache:- most source locations are now relative to a base source location in the function, and as such they&apos;re encoded as `RelSourceLoc` in the `FunctionStencil`. This required changes so that there&apos;s no need to explicitly mark a `SourceLoc` as the base source location, it&apos;s automatically detected instead the first time a non-default `SourceLoc` is set.- user-defined external names in the `FunctionStencil` (aka before this patch `ExternalName::User { namespace, index }`) are now references into an external table of `UserExternalNameRef -&gt; UserExternalName`, present in the `FunctionParameters`, and must be explicitly declared using `Function::declare_imported_user_function`.- some refactorings have been made for function names:  - `ExternalName` was used as the type for a `Function`&apos;s name; while it thus allowed `ExternalName::Libcall` in this place, this would have been quite confusing to use it there. Instead, a new enum `UserFuncName` is introduced for this name, that&apos;s either a user-defined function name (the above `UserExternalName`) or a test case name.  - The future of `ExternalName` is likely to become a full reference into the `FunctionParameters`&apos;s mapping, instead of being &quot;either a handle for user-defined external names, or the thing itself for other variants&quot;. I&apos;m running out of time to do this, and this is not trivial as it implies touching ISLE which I&apos;m less familiar with.The cache computes a sha256 hash of the `FunctionStencil`, and uses this as the cache key. No equality check (using `PartialEq`) is performed in addition to the hash being the same, as we hope that this is sufficient data to avoid collisions.A basic fuzz target has been introduced that tries to do the bare minimum:- check that a function successfully compiled and cached will be also successfully reloaded from the cache, and returns the exact same function.- check that a trivial modification in the external mapping of `UserExternalNameRef -&gt; UserExternalName` hits the cache, and that other modifications don&apos;t hit the cache.  - This last check is less efficient and less likely to happen, so probably should be rethought a bit.Thanks to both @alexcrichton and @cfallin for your very useful feedback on Zulip.Some numbers show that for a large wasm module we&apos;re using internally, this is a 20% compile-time speedup, because so many `FunctionStencil`s are the same, even within a single module. For a group of modules that have a lot of code in common, we get hit rates up to 70% when they&apos;re used together. When a single function changes in a wasm module, every other function is reloaded; that&apos;s still slower than I expect (between 10% and 50% of the overall compile time), so there&apos;s likely room for improvement. Fixes #4155.

            List of files:
            /wasmtime-44.0.1/cranelift/codegen/src/incremental_cache.rs</description>
        <pubDate>Fri, 12 Aug 2022 16:47:43 +0000</pubDate>
        <dc:creator>Benjamin Bouvier &lt;public@benj.me&gt;</dc:creator>
    </item>
</channel>
</rss>
