Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1116085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:15:03+00:00 2026-05-17T03:15:03+00:00

Comparing the terms memoize and cache and in reading Wikipedia’s memoization entry , do

  • 0

Comparing the terms “memoize” and “cache” and in reading Wikipedia’s memoization entry, do people agree that using the term “memoize” implies

  • The memoized result is kept in the process’ memory; in other words, it isn’t stored in memcached .
  • One only “memoizes” functions, as in mathematical functions, e.g. Fibonacci, not values that may change over time, e.g. the number of registered users on the web site?

If you’re doing anything else than the above, then one is just caching a result?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T03:15:03+00:00Added an answer on May 17, 2026 at 3:15 am

    I believe that memoizing a function allows you to locally cache the result of a function for a given set of arguments. It’s almost like:

    function f(a, b, c) {
      if (a==1 && b==2 && !c) {
        return 5;
      } else if (a==1 && b==3 && !c) {
        return 17.2;
      } /* ... etc ... */
    
      // some horribly long/complex/expensive calculation
      return result;
    }
    

    but with the initial huge “if” block being handled automatically and far more efficiently, and being added to as the function is called with different arguments.

    Note that you can only memoize a function that is deterministic and has no side effects. This means that the function’s result can only depend on its inputs, and it cannot change anything when it is run.

    So in short, memoization is function-local caching in very specific circumstances, and so it’s a specialisation of regular caching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to work on comparing around 300 binary files using Scala, bytes-by-bytes, 4MB
I read many articles comparing programming languages. There is a word that comes often:
I am comparing two strings using following code string1.Contains(string2) but i am not getting
I'm interested in optimizing my code for multithreaded computing. In terms of the cache,
I've been reading a lot about cloud computing recently and the terms elasticity and
I am using this code for comparing string values in a method, which work
I'm wondering is there a difference in terms of computing cost for the Model.get(keys)
When I study about cloud-computing, I usually see these terms: on-premise, off-premise applications. I
When comparing a string literal with another string literal with the == operator (or
Why comparing to null is so unstable? Just code. IronRuby 0.9.4.0 on .NET 2.0.50727.4927

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.