trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.61k stars 676 forks source link

Perf: race condition for in flight cache #4411

Open davidmurdoch opened 1 year ago

davidmurdoch commented 1 year ago

We check the in flight cache, the memory cache, then check the persistent cache asynchronously, then insert into the in flight cache.

In rare circumstances this might allow multiple requests for the same data to be fired off to the upstream provider, when there should only be one.