memoization
Here are 196 public repositories matching this topic...
-
Updated
Apr 22, 2020 - TypeScript
According to the documentation of joblib.dump the function should return a list of filenames. However, as pointed out by Jan Katins if a file object is provided then no output is returned.
Is it a bug or a feature? Should the docs be updated or maybe
These things are unclear from the current documentation about the options:
- How to use options
- What are the default values
It is possible to look them up in source code, but I think, it would be nice to have them in docs.
-
Updated
Jun 9, 2020 - TypeScript
-
Updated
Jun 6, 2020 - TypeScript
Well, my use case is:
I have a function that queries the database, the input is the database alias and the query.
It's working great, but I just saw that the cache size will grow indefinitely, right?
My idea was to keep track of the stale date, and check for all elements of the object if any was already "staled", and delete it.
Just to keep the filesize at a minimum.
I never worked with Cla
-
Updated
Jun 1, 2020 - JavaScript
I just skimmed through the docs, so bear with me:
I have two functions, one is cached, and another one might invalidate the cache or some key in it. There's no example of how to get ahold of the cache in the second function, in order to be able to call methods like cache_remove or cache_clear.
The second function is not cached, it just invalidates the cache, and there can be an infinite
-
Updated
Mar 13, 2019 - Prolog
-
Updated
Apr 1, 2020 - TypeScript
-
Updated
Apr 5, 2020 - TypeScript
-
Updated
Mar 8, 2020 - JavaScript
-
Updated
May 24, 2020 - C++
-
Updated
Jan 13, 2020 - JavaScript
-
Updated
Jun 6, 2020 - TypeScript
-
Updated
Feb 5, 2017
-
Updated
Aug 18, 2018 - JavaScript
-
Updated
May 24, 2020 - JavaScript
-
Updated
May 12, 2020 - Python
-
Updated
Jun 9, 2020 - TypeScript
-
Updated
Feb 2, 2020 - TSQL
-
Updated
Jan 30, 2020 - C#
-
Updated
Jan 27, 2019 - Ruby
Something like this
class Resource<A> {
IO<A> acquire;
Consumer1<A> release;
Resource(IO<A> acquire, Consumer1<A> release) {
this.acquire = acquire;
this.release = release;
}
public <B> IO<B> use(Function1<A, IO<B>> use) {
return IO.bracket(acquire, use, release);
}
}-
Updated
Jan 3, 2020 - Kotlin
Improve this page
Add a description, image, and links to the memoization topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the memoization topic, visit your repo's landing page and select "manage topics."
I tried to use this memoizer for fuction with 5 arguments, and I implemented the custom cache with .get() .set() and .has() methods
We have 100% test coverage rule for our code. And after running tests I see that .has() method is never called. I checked the source code for fast-memoize and I see no usage of .has() method at all.
So, either documentation should be updated to not mention the .