The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [caching]

For questions related to the effects of Mathematica's internal caching mechanisms.

Filter by
Sorted by
Tagged with
7
votes
2answers
722 views

Does Mathematica reuse previous computations?

I am doing an analysis of experimental results in which I need to repeat the same GaussianFilter hundred of times on different data. As explained in the ...
6
votes
1answer
119 views

Clever caching of a recursively defined function

I've got a function of the form f[n,s] where n is a natural number and s is a finite ...
3
votes
1answer
83 views

How to refresh or clear cached CloudObjects[]?

cross posted on community.wolfram.com Let's create an API which creates one file each time it is called/accessed: ...
4
votes
0answers
40 views

Clear cache of Mathematica in Ubuntu

When linux reboots after a fresh installation of mathematica, it leaves some cache files in mathematica folders. Is it possible to remove all these files so that all such folders return to "fresh ...
4
votes
2answers
248 views

NetModel's cache in which folder?

NetModel will produce a big cache file after you use it first time. ...
10
votes
1answer
243 views

How to clear Integrate internal memory?

I noticed that when I call Integrate for the first time, on an integral that I know will take longer than the time limit I give it, it will abort for the first time,...
12
votes
1answer
457 views

SquaresR memory leak?

I have tried the following code in Mathematica 11.0.1.0 on my MacBook: ...
6
votes
2answers
207 views

How to save the caching produced in processing

As my this previous post.I get a custom function which can help me got some function contain a certain option.And I have put it in my "init.m" file. ...
34
votes
2answers
731 views

GroupBy twice gives different results

Bug introduced in 7.0 or earlier and persisting through 11.1 It took me quite a lot of time to finally trace down to this strange output. I really don't know why. First, I create a list ...
1
vote
0answers
71 views

Evaluation of likelihood very slow

I am trying to implement a simple statistical model for the first time in Mathematica. My model is made my one random variable which is the sum of background and signal. Background is an exponential ...
3
votes
1answer
186 views

May I restrict caching to disk when memory runs low? [duplicate]

An hour ago, I had to hard reset my laptop again because Mathematica froze the system again. When import a large file or make a mistake that produces huge arrays with complicated entries etc., I often ...
1
vote
0answers
384 views

Speeding up inversion of symbolic matrices by invoking caching

Is it possible to reduce the computation time taken to find inverse of symbolic matrices USING CACHING TECHNIQUES accessible (if any)? I am trying to compute inverse of symbolic matrices of size ...
4
votes
0answers
399 views

Memory problem with producing complex graphics of general type

The problem I am about to ask has appeared once here: Memory Leak in Frontend - anyone know a workaround?. However, in this question I would like to put it in a bit different context. Problem recipe: ...
9
votes
1answer
385 views

Caching of Graph Graphics

In this answer, Simon Woods concludes that when you display an expression with head graph more than once, something is getting stored somewhere. I looked into it too and found out this only happens if ...
17
votes
2answers
1k views

Built-in Mathematica data: are they cached? how to speed up the loading?

Mathematica has numerous built-in data for science and math. Every first call to a data function in a new Mathematica session will "re-initialize indices" (download the data). Is there a way to store ...
10
votes
3answers
508 views

Making sure that Timing[] isn't thrown off by caching

In playing with and comparing the various answers to my question here, I tried applying Timing[] to see how fast things ran, but it seemed that some of the answers (...
12
votes
3answers
412 views

Memoization of Rounded inputs

Memoization is a technique for improving performance by having a function remember its previous arguments. For example, f[x_]:=f[x]=mySlowFunction[x] will be ...