29
votes
Accepted
How do I disable the stack tracing feature in Mathematica 11?
Is there a possibility to disable stack tracing, but keep messages?
Internal`$MessageMenu = False
reverts back to the old messages. Seems to do the trick and ...
27
votes
Accepted
What happens if you don't Reap what you've Sown?
Preamble
This complements the answer of Roman with a few more details.
Reap - Sow implementation is based on an internal object <...
26
votes
How do I disable the stack tracing feature in Mathematica 11?
Analysis current as of Mathematica version 11.0.1 and 11.1.0.
We can disable the Show Stack Trace item in the new message menu as follows:
...
23
votes
What would you ask Mathematica to do on a big system?
I've always wondered about the scalability of MathLink (now officially "Wolfram Symbolic Transfer Protocol"). This is the protocol used by Mathematica to communicate between the front end and the ...
22
votes
Is there any harm or benefit to Removing unneeded private symbols in packages?
I decided to take one of my large packages and Remove all symbols in the Private` context that have no definitions attached to them
...
And is there any risk if only those symbols that are not used ...
21
votes
Accepted
Computing elements of a 1000 x 60 matrix exhausts RAM
Your function F is implemented really, really inefficiently. By quite simple means and in the proposed situation, it can be sped up by a factor of 20000. The key is ...
21
votes
What happens if you don't Reap what you've Sown?
It looks like there's no memory being used by Sow when there is no encompassing Reap.
With ...
19
votes
Accepted
Generating and rendering extremely large graphs
I suggest not to use Graph to render, as it is slow. Instead, compute the vertex coordinates, then render manually.
The rough steps are as follows:
Create an "...
19
votes
Accepted
Out of memory when computing a coefficient of a large symmetric polynomial
Split it into 3 steps to get result immediately.
...
18
votes
Accepted
SquaresR memory leak?
Cause
Under the hood System`SquaresR is still calling functions in the context NumberTheory`.
Partial output of:
...
15
votes
What would you ask Mathematica to do on a big system?
I am sure you can easily install also Linux on it and then you could contact Vladyslav Shtabovenko, the current maintainer of FeynCalc (https://github.com/vsht) and ask him about hard problems in High ...
15
votes
Accepted
How to force Mathematica to clean up the cache
This is also not an answer (I think you found the culprit and it needs to be solved by WRI) but a suggestion for a workaround. The idea is to run the memory leaking code in an extra kernel and restart ...
14
votes
Is this buggy behavoir of Module solved?
IMHO, this is not a bug, but a feature. It allows you to implement pointer-like data structures with garbage collection because symbols in a Module have the ...
13
votes
Memory leak in the system function: how to free memory without restarting the kernel?
Please report this to support. You can get rid of some of the memory leak by executing the following:
...
13
votes
Accepted
Efficient storage of large non-rectangular arrays
Special case
Best way would be to not store this thing at all. It has so much structure that a[[i,j]] is cheaply computable on the fly. Integer and double ...
12
votes
12
votes
Accepted
Garbage collection for lexical closures
Here's an approach to "automate" the usage of the ExpressionCleanup` paclet mentioned by @LeonidShifrin. The idea is to return an object from your module ...
12
votes
Accepted
Memory leak with Mathematica Graph functions
Here is another possible way to eliminate the impact of history, etc. The following code aborts on my machine after printing to the console three times.
...
11
votes
11
votes
What would you ask Mathematica to do on a big system?
I would choose a problem that exploits the unique power of Mathematica, in particular the natural functions involving graph theory, symbolic math, graphics, and the high compute power you have ...
11
votes
Accepted
Is there any harm or benefit to Removing unneeded private symbols in packages?
As a more direct answer to the question of memory we can check with a test.
...
11
votes
Accepted
Memory leak with FindMaximum/Minimum inside of Module
Please report this as a bug. A minimal example:
...
11
votes
Garbage collection for lexical closures
If you can afford this from performance standpoint, you can generate definitions at every function call:
...
10
votes
Is this memory leak in VertexDelete a bug?
I can reproduce the problem. A more minimal example is
...
10
votes
Accepted
PackedArray and Dot results in undesired unpacking
Is it important to do the computation with integers?
I have no problem computing this with reals (using N):
...
10
votes
How to force Mathematica to clean up the cache
Not an answer, just extended clarification
There seem to be many types of caching related leaks here.
I can get one by just doing this:
...
10
votes
Accepted
How to solve this problem 710 of Project-Euler
"when I use the above method to solve t(42), I am prompted that the memory is insufficient. How can I avoid memory overflow errors?"
...
10
votes
Accepted
huge difference in memory usage
Yes, the reason for the greater memory use is that your attemptOne generates the entire set of subsets before performing the summation. Keep in mind that those are ...
10
votes
huge difference in memory usage
Yes, the list of subsets has to generated first and stored somewhere. This is why attemptOne uses more time and memory, namely $k\, O({n \choose k})$ of both.
I ...
10
votes
Accepted
Why are more highly nested lists often not more memory and time-intensive?
A packed arrays (or a MTensor on the C++ side of Mathematica) consists of a linear array containing all entries plus the information needed for storing of the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
memory × 437performance-tuning × 92
list-manipulation × 40
bugs × 26
parallelization × 21
differential-equations × 20
import × 19
matrix × 17
kernel × 16
functions × 13
export × 13
linear-algebra × 12
scoping × 12
sparse-arrays × 12
plotting × 11
programming × 11
packed-arrays × 11
numerical-integration × 10
function-construction × 9
mathematical-optimization × 9
evaluation × 9
warning-messages × 9
combinatorics × 9
crash × 9
memoization × 9