Pranav Bhandari
90d · built 2026-11-30
Performance
What Pranav Bhandari shipped in the selected window, measured in ETV, and how it compares with the 90 days before it.
Effective capacity
+16.8engineers
delivers like 17.8 (17.8x pre-AI)
Output (ETV)
4.6ETV
+132.7% vs 2.0 prior
Features share
37.1%
+26.5 pp vs prior window
Fixes share
1.5%
+1.5 pp vs prior window
Work mix
37.1% Features7.1% Maintenance51.4% Tests2.8% Docs1.5% Fixes
18 commits over 90 days, ending 2026-11-30.
Daily performance
Daily ETV, stacked by Features, Maintenance, Tests, Docs and Fixes.
Repository spread
Where this developer's commits land. Concentrated work (top1 > 80%) vs polymath spread (top1 < 30%).
Most impactful commits
Top 10 by ETV in the last 90 days.
- 0.5ETVCancel transfer coroutines between stages Summary: Composable cache needs cancelled transfers to stop before starting more work while keeping their key reserved until resource cleanup finishes. This diff connects `TransferExecutor` to the `InFlightTransfers` registry: - `submit` consumes a move-only transfer token and retains it through cleanup. Payload destruction precedes registration release, including rejected submissions. - Transfer coroutines check cancellation before allocation, after allocation, and after copying, skipping remaining stages when cancelled. - Started allocation, copying, and insertion operations finish normally before resources and registration are released. Cancellation after the final checkpoint may still allow insertion. Later diffs will connect this behavior to cache operations and add: - Waiting for cancelled transfers and cleanup to finish. - Coordinating source removal with destination publication. - Mutation and publication safeguards that prevent older work from overwriting newer values or resurrecting removed items. Reviewed By: rlyerly Differential Revision: D127929290 fbshipit-source-id: 607d57cda64872d460f7700e210c927851cd5a7egithub.com-meta-CacheLib · 71bddded · 2026-10-30
- 0.5ETVBlock transfers during mutations Summary: Composable cache operations need exclusive access to a key while checking presence, inserting, replacing, or removing an item. Without that exclusion, a transfer can race the operation or publish an older value afterward. Add `lockForOperation(key, policy)` and a move-only `KeyOperationGuard`: - `Wait` lets an existing transfer finish before insert checks the components for the key. `CancelAndWait` requests cancellation before replacement or removal; both policies wait for transfer cleanup and earlier guards. - `findToWrite` first finds or promotes and pins the item, then holds a `Wait` guard while acquiring the writable handle. - Pending and held guards block new transfers for the key, including between queued operations. Callers acquire before component locks and recheck component state while holding the guard. - `co_invoke` owns the key, registry state, and policy while keeping acquisition lazy. An unstarted task has no effect; tasks and guards can outlive the registry. Acquisition ignores caller cancellation. - Transfer tokens and operation guards share a private `RegistrationGuard` for release and completion notification. Only transfer entries allocate cancellation state. `cancel()` and `cancelAndWait()` continue to target transfers independently of operation guards. Later diffs connect these guards to component operations and transfer publication. Reviewed By: rlyerly Differential Revision: D127929301 fbshipit-source-id: 57cb1c2b6496148079f3097a274955c69368fbb7github.com-meta-CacheLib · 4c049654 · 2026-11-18
- 0.4ETVRegister and coalesce lookups per key Summary: Concurrent lookups for the same key need to share one in-flight lookup and its result while transfers and mutations continue to use the same per-key coordination entry. This diff adds `InFlightTransfers::joinOrCreateLookup(key)`, `LookupOwner`, and `LookupWaiter`: - Registers one `GetCtx` per key. The first caller receives a move-only completion owner; every caller receives a copyable waiter for that context. - Publishes one shared hit, miss, or error. Completion succeeds once; destroying or replacing an unfinished owner completes its waiters with a miss. - Clears only the matching lookup registration before waking waiters outside the entry mutex. New lookups can start while callers retain an older result. - Captures the context when `wait()` is called. Wait tasks ignore caller cancellation and can outlive the waiter, temporary key, and registry. - Retains a hit's ingress `ReadHandle` through shared ownership of the result, keeping the item pinned for all waiters, including callers that wait after completion. Lookup completion remains independent of transfers and pending or held mutation guards. Registration does not reserve the key or validate cache state; callers must coordinate publication and mutations and keep the handle's cache component alive while any waiter, task, or result retains it. Cache lookup integration remains for later diffs. The new lookup tests are wired into Buck and CMake. Reviewed By: rlyerly Differential Revision: D127994217 fbshipit-source-id: a559e22f01dc8f868b6adc6736f277d8aa20023cgithub.com-meta-CacheLib · 03115958 · 2026-11-19
- 0.4ETVReturn descriptors from `findToWrite()` and `iterator()` and make AllocatedHandle not derive from WriteHandle Summary: `CacheComponent::findToWrite()` now returns `Result<std::optional<WriteDescriptor>>` and `iterator()` yields `ReadDescriptor`, finishing the handle -> descriptor migration already done for `find()` and `allocate()`. Callers no longer have to remember to mark a handle dirty: `WriteDescriptor::mutableData()` does it, so the write is flushed when the descriptor is destroyed. `WriteDescriptor` and `AllocatedDescriptor` gain `key()`, `creationTime()` and `expiryTime()` to cover what callers used to read off the handle. With descriptors owning that path, `AllocatedHandle` no longer needs to be a `WriteHandle` -- it derives from `Handle` directly and re-declares the accessors, so `markDirty()` is not reachable on it. An allocated item is not in the cache, and marking one dirty makes `~WriteHandle()` call `writeBack()`, which on `FlashCacheComponent` indexes the bytes while `~Handle()` charges the same bytes as a hole -- the region can then be reclaimed with a live index entry pointing into it. `RAMCacheComponent::writeBack()` is a no-op, so the mistake is invisible under DRAM-only testing. `WriteDescriptor`'s `std::same_as<WriteHandle>` constructor constraint existed only to block an `AllocatedHandle` rvalue and is now redundant, so it reverts to a plain `WriteHandle&&`. Reviewed By: rlyerly Differential Revision: D116701300 fbshipit-source-id: 2a83f76cc80cebab330cbdecff001941ad634da5github.com-meta-CacheLib · d1229777 · 2026-09-08
- 0.4ETVAdd an asynchronous transfer executor Summary: Add TransferExecutor, a framework-owned asynchronous transfer engine. Callers submit a DetachedItem together with the selected destination CacheComponent and Connector; the executor schedules accepted transfers on a configurable folly::CPUThreadPoolExecutor and tracks them with AsyncScope so shutdown can drain suspended work. Routing and selector policy remain in the framework rather than being frozen into bound callbacks. The executor is reusable for eviction and promotion and intentionally omits queue bounds, admission metrics, routing, and version checks; pool sizing remains caller policy. Reviewed By: rlyerly Differential Revision: D118363420 fbshipit-source-id: cea3c868e5d7569bc24e4d3109bc18029a335ac5github.com-meta-CacheLib · 4db9ccba · 2026-09-21
- 0.4ETVAdd the cache framework Summary: Adds a user-facing Cache facade that exposes handle-based async cache operations over composable cache components. Includes build integration and coverage across RAM and flash implementations. Reviewed By: rlyerly Differential Revision: D117216968 fbshipit-source-id: a3c88de4130d124f2361e6f0d7fc742007e727bfgithub.com-meta-CacheLib · eb350f9a · 2026-09-08
- 0.4ETVWait for cancelled transfers to finish Summary: Composable cache needs to wait for cancelled transfers and their cleanup to finish before proceeding with work that depends on their completion. This diff adds `InFlightTransfers::cancelAndWait(key)`: - Requests cancellation immediately and returns a task that waits for the observed transfer’s owning token to be released. - Waits through resource cleanup and any insertion already in progress. References held by waiters do not keep the key registered. - Supports multiple waiters and tasks that outlive the registry. Caller cancellation does not interrupt the completion wait. Later diffs will connect this API to cache operations and add: - Blocking new transfers while mutations are pending or running. - Coordinating source removal with destination publication. - Mutation and publication safeguards that prevent older work from overwriting newer values or resurrecting removed items. Waiting observes one transfer; it does not reserve the key against replacement transfers or serialize mutations. Reviewed By: rlyerly Differential Revision: D127929300 fbshipit-source-id: 0928f98c7e237c1a7313585cef40a568394c1d18github.com-meta-CacheLib · dbbb4f05 · 2026-11-03
- 0.4ETVReport RAM evictions through callbacks Summary: Add a shared eviction callback to CacheComponent and wire RAMCacheComponent to report live capacity evictions. The callback receives a borrowed CacheItem, preserves existing item-destructor behavior, ignores expired and explicitly removed items, and must not throw. Reviewed By: rlyerly Differential Revision: D119413422 fbshipit-source-id: 5f4808ced110f9a8c5b3593857feb1dacd923b3dgithub.com-meta-CacheLib · 8768fb0f · 2026-10-01
- 0.3ETVRegister cancellable transfers Summary: Composable cache needs to track transfers by key so the framework can prevent overlapping transfers and cancel obsolete work. This diff adds a standalone `InFlightTransfers` registry: - `tryAcquireTransferToken(key)` returns a move-only token and rejects another registration for the same key. - `cancel(key)` requests cooperative cancellation. The key stays reserved until the transfer token is destroyed. - Callers run the transfer and retain its token through cleanup. Later diffs will connect the registry to cache operations and add: - Waiting for transfers and cleanup to finish. - Coordinating source removal with destination publication. - Mutation and publication safeguards that prevent older work from overwriting newer values or resurrecting removed items. Reviewed By: rlyerly Differential Revision: D126482663 fbshipit-source-id: af53724e9fe02e14a1c69b3a31da46c815192b31github.com-meta-CacheLib · 8fae96c8 · 2026-10-30
- 0.3ETVGate EventTracker sampling by event type Summary: Add an event mask to `EventTracker`, checked before the key sampler so a disabled event type costs a bit test instead of a virtual call into the sampler. The mask defaults to all events, preserving existing behavior. Rename `EventTracker::sampleKey(key)` to `shouldRecordEvent(event, key)` and thread the event type through the allocator, NVM, and BlockCache sampling paths. A `static_assert` ties the mask width to the `AllocatorApiEvent` range so a 64th event breaks the build instead of becoming silently unrecordable. `record()` returns the new `RecordResult::EVENT_DISABLED` when the mask rejects an event, keeping it distinct from a sampler rejection, and `getStats()` reports an `event_disabled` counter alongside `sample_success`. Reviewed By: AlnisM Differential Revision: D120193460 fbshipit-source-id: e506472b54228bc5487ac50afabaafd83e8e1ec4github.com-meta-CacheLib · a5b5db33 · 2026-09-21