<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv" -->

---
title: Cloudflare's DNS memory trick goes deeper, crates.io...
description: Cloudflare published the full technical breakdown behind last week's 100TB memory win, and it's worth the second look. The array-ref supply chain compromise...
canonical: https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Cloudflare's DNS memory trick goes deeper, crates.io gets its npm moment | daily.dev
og:description: Cloudflare published the full technical breakdown behind last week's 100TB memory win, and it's worth the second look. The array-ref supply chain compromise...
og:url: https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv
og:image: https://api.daily.dev/og/posts/95kWUHScV.png
og:image:alt: Cloudflare's DNS memory trick goes deeper, crates.io gets its npm moment
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare's DNS memory trick goes deeper, crates.io gets its npm moment

**[Rust Digest](https://daily.dev/sources/rust_digest)** · 4 min read · 1 upvotes · 1 comments

## Summary

Cloudflare published the full technical breakdown behind last week's 100TB memory win, and it's worth the second look. The array-ref supply chain compromise turned into a bigger conversation about whether crates.io's centralized trust model can survive its own growth. Rust 1.98.1 patched a vtable miscompilation that could produce null function pointers, Wasmi 2.0 shipped with a 2.2x speedup, and AMD is quietly building a team to push Rust into GPU firmware.

## Content

**TLDR:** Cloudflare published the full technical breakdown behind last week's 100TB memory win, and it's worth the second look. The array-ref supply chain compromise turned into a bigger conversation about whether crates.io's centralized trust model can survive its own growth. Rust 1.98.1 patched a vtable miscompilation that could produce null function pointers, Wasmi 2.0 shipped with a 2.2x speedup, and AMD is quietly building a team to push Rust into GPU firmware.

---

## Cloudflare's DNS cache rewrite gets the full writeup: five Rust patterns, 100TB freed

Last week we covered the headline number. This week the detailed post is out, and it's a genuinely useful checklist for anyone with large in-memory datasets: swap Vec/String for Box<[T]>/Box<str> to drop the dead capacity field, collapse record lists into one offset-based allocation instead of three, stop storing data that's already implicit in your cache key, box oversized enum variants so small ones don't inherit padding, and store wire format instead of parsed structs where you can. Per-entry memory dropped from 953 to 420 bytes, insert throughput rose from 625K to nearly 900K entries/sec, and P99 memory per instance fell from 9.3GB to 5.3GB. None of this is exotic - it's the audit process that's the real takeaway. [Read more](https://daily.dev/feed-by-ids?id=U9rnns8Af&id=0SHazuX5H)

## array-ref compromise reopens the crates.io trust debate

A malicious version of array-ref shipped a typosquatted proc-macro1 dependency that ran a credential-stealing backdoor via build.rs, with infrastructure overlapping prior DPRK-linked npm attacks. The Rust Security Response Team pulled it in about 110 minutes, but nine crates downloading over a million times a day were exposed in that window. The uncomfortable part: one analysis found 17% of top crates' published code doesn't match their source repos, and build.rs running arbitrary code at compile time has mostly been treated as a solved problem because the ecosystem was small. It isn't small anymore - pin dependencies via [patch.crates-io], keep publishing CI-only, and start treating build.rs like an npm postinstall hook. [Read more](https://daily.dev/posts/5rufmEReu)

## Rust 1.98.1 patches a null-pointer vtable miscompilation from 1.98.0

If you hit the affected code path in 1.98.0, rustc could generate a trait object vtable with a null pointer where a function pointer belonged - undefined behavior ranging from segfaults to worse. Reported August 21, patched September 3. Just run `rustup update stable`. [Read more](https://daily.dev/posts/M0Ld4JPBp)

## Wasmi 2.0 ships 2.2x faster, and a Rust compiler optimization was quietly regressing it

Eight months of engine work produced four dispatch modes, accumulator registers, a lock-free CodeMap, and fixed 64-bit stack cells, landing Wasmi 2.0 at roughly 2.2x over 1.0 and matching or beating Wasm3 and Stitch. The interesting part: a Rust 1.92 MIR optimization called DestinationPropagation was silently collapsing dispatch paths and tanking branch handler performance - reverting its effect alone was worth a ~50% CoreMark improvement. Worth knowing if you're chasing a mysterious regression in your own interpreter after a toolchain bump. [Read more](https://daily.dev/posts/M7YGtQqww)

---

## Also notable

- **AMD forms a dedicated team to push Rust into the GPU stack:** AMD Senior Fellow Harsh Meno confirmed a small team working Rust into compilers, runtimes, and firmware across the GPU stack, with an open job posting and NVIDIA pursuing a parallel path via its Rust-based Nova Linux kernel driver. [Read more](https://daily.dev/posts/jf6ETeeJk)
- **uutils coreutils 0.11 adds rustc-style error diagnostics across 28 utilities:** Parse errors in tr, chmod, sort, test, and 24 other utilities now render with a caret pointing at the exact problem, powered by the ariadne crate, alongside GNU test suite compatibility hitting 95.33%. [Read more](https://daily.dev/posts/USpE9PVVd)
- **Datadog's Rust tracer cut ingestion volume 20x after fixing upstream OpenTelemetry bugs:** dd-trace-rs contributed context-stack fixes to OpenTelemetry Rust and tracing-opentelemetry that also made context operations 2-4x faster independent of Datadog's own tracer. [Read more](https://daily.dev/posts/aiqpouPOU)
- **Rust standard library verification effort scales to nearly 12,000 functions via auto-generated harnesses:** AWS's Autoharness tool generated 16,748 MIR-level proof harnesses and verified 11,970 stdlib functions against undefined-behavior classes, up from a manual-proof plateau of 725 hand-written harnesses. [Read more](https://daily.dev/posts/BPGVGI9FW)
- **Rustup 1.29.1 parallelizes component installation:** Concurrent installation and update checking should noticeably speed up setups that pull multiple toolchain components at once, alongside a new `rustup doc --serve` flag and re-added (now deprecated) implicit toolchain installation. [Read more](https://daily.dev/posts/SPuonARaD)

## Community discussion

Top comments from developers on daily.dev.

**@ozkanpakdil** · 0 upvotes

> 100TB is a really nice number

## Similar posts on daily.dev

- [Cloudflare Cuts 100 TB of Memory from 1.1.1.1 DNS Cache](https://daily.dev/posts/cloudflare-cuts-100-tb-of-memory-from-1-1-1-1-dns-cache-yzw8fsmd5) · InfoQ · 6 upvotes · 2 comments

---

Tags: [#security](https://daily.dev/tags/security), [#rust](https://daily.dev/tags/rust), [#webassembly](https://daily.dev/tags/webassembly), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv","headline":"Cloudflare's DNS memory trick goes deeper, crates.io gets its npm moment","text":"Cloudflare published the full technical breakdown behind last week's 100TB memory win, and it's worth the second look. The array-ref supply chain compromise turned into a bigger conversation about whether crates.io's centralized trust model can survive its own growth. Rust 1.98.1 patched a vtable miscompilation that could produce null function pointers, Wasmi 2.0 shipped with a 2.2x speedup, and AMD is quietly building a team to push Rust into GPU firmware.","url":"https://daily.dev/posts/cloudflare-s-dns-memory-trick-goes-deeper-crates-io-gets-its-npm-moment-95kwuhscv","datePublished":"2026-09-07T04:19:47.232Z","dateModified":"2026-09-13T20:54:01.353Z","author":{"@type":"Organization","name":"Rust Digest","logo":"https://media.daily.dev/image/upload/s--YNSg30Q0--/f_auto,q_auto/v1773839405/logos/rust_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/rust_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"comment":[{"@type":"Comment","text":"100TB is a really nice number","datePublished":"2026-09-11T12:27:52.856Z","url":"https://daily.dev/posts/95kWUHScV#c-lacQgBUvJ","author":{"@type":"Person","name":"Özkan Pakdil","url":"https://daily.dev/ozkanpakdil","image":"https://media.daily.dev/image/upload/s--ihPlqRre--/f_auto/v1758259464/avatars/avatar_yHtxohtmgtdK1F5lKdKSe?_a=BAMAK+ZW0"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/rust_digest","name":"Rust Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rust Digest","item":"https://daily.dev/sources/rust_digest"},{"@type":"ListItem","position":3,"name":"Cloudflare's DNS memory trick goes deeper, crates.io gets its npm moment"}]}
```

