hard20 pts · first answer countsdynamic-programmingmemoizationperformance
A memo cache in a long-running server
A Node.js API memoises a pricing function in a module-level Map keyed by request parameters. After a few days, memory keeps climbing. What is the right fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Slow email during signupBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Checking if any rows existBackend Developer
- Signs that a problem suits DPBackend Developer
- What memoisation meansBackend Developer
- What tabulation meansBackend Developer