Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Tip-29: the 'key' of the memoized function is saved as JSON. #399

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

jherax
Copy link
Contributor

@jherax jherax commented Mar 14, 2017

  • Storing the key with JSON.stringify() allow to serialize objects sent as arguments.
  • Added external links for memoization.
  • Improved code formatting.

Improved Tip-29: the 'key' of the memoized function is saved as JSON

TL;DR;

Memoization is an optimization technique used primarily to speed up functions by storing the results of expensive function calls and returning the cached result when the same inputs occur again.

Username

github:jherax

Extra

https://jherax.wordpress.com/

Copy link
Collaborator

@zenopopovici zenopopovici left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

- Storing the key with JSON.stringify() allow to serialize objects sent as arguments.
- Added external links for memoization.
- Improved code formatting.
@zenopopovici zenopopovici merged commit 37fbab8 into loverajoel:master Apr 6, 2017
@zenopopovici
Copy link
Collaborator

Tank you @jherax

@jherax jherax deleted the improve-memoization-tip branch April 20, 2017 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants