mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
We only store hashes for TaskTypes in the TaskCache keyspace, so this introduces an allocation free path to compute it. For writing out the TaskCache this wont make much of a difference since we were reusing a scratch buffer, but this should eliminate a source of allocations from the read path. This does of course cause a small binary size regression `157M (160,952K) -> 158M (161,800K) = +1M (+848K)`
23 lines
486 B
TOML
23 lines
486 B
TOML
[package]
|
|
name = "turbo-bincode"
|
|
version = "0.0.0"
|
|
description = "Utilities for bincode used in turbo-tasks and turbopack"
|
|
license = "MIT"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
bincode = { workspace = true }
|
|
either = { workspace = true }
|
|
indexmap = { workspace = true }
|
|
mime = { workspace = true }
|
|
ringmap = { workspace = true }
|
|
serde = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
turbo-tasks-hash = { workspace = true }
|
|
unty = { workspace = true }
|