Hi all,
I am using xAct for arranging thousands of tensorial term. But whenever I use `Expand' command on that (after some replacements), it takes enormous time, as I did experiments it could take more than 20 hours for ~5000 terms.
So I tried saving the expression as .mx or .dat file , and open it in kernel 2 (not parallel subkernel but the second master kernel (mathematica usually provides two master kernels)), and I expanded it, but it also took a lot of time. But when I saved it as a text file, and expanded it in kernel 2, with the command "ToExpression", it just takes less than one second for Expand.
At first, I suspected that it is because of some xAct's automatic arrangement on indices,. However, even when I use .mx file without xAct package loaded, it also takes long time (I don't know it takes as long as it does with xAct package) . Only when I save it in text file, it takes a second.
If you have any ideas why this happens, or have some tricks to resolve this, it would be great if you teach me that. Thanks in advance.