Skip to content

Commit 2a4f7ae

Browse files
spec: rewrite picante spec as semantics-only
1 parent fb6c4f0 commit 2a4f7ae

File tree

2 files changed

+98
-790
lines changed

2 files changed

+98
-790
lines changed

crates/picante/src/ingredient/derived.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ where
113113
V: Send + Sync + 'static,
114114
{
115115
fn compute<'a>(&'a self, db: &'a DB, key: Key) -> ComputeFut<'a> {
116-
// r[type-erasure.tradeoffs]
116+
// Tradeoffs: vtable dispatch, boxed future allocation, and key decode per compute.
117117
Box::pin(async move {
118118
let k: K = key.decode_facet()?;
119119
let v: V = (self.f)(db, k).await?;

0 commit comments

Comments
 (0)