Update
Ok, I got it with reproducible example. It turns out size is not the issue, number of cells is.
First, let us programmatically generates a lot cells according to this post. Basically, 3000 cells is enough at least on my computer.
Do[Paste@Cell[BoxData@MakeBoxes@0, "Input"], 3000]
will generate 3000 cells of just 0
then save it. Now test it according to my previous procedure.
Here is another gif show
previous
What I will show you in below gif is that
- First, I was in a deep directory
C:/0/1/2/3/4/5/6/7/8/9/10
with a relatively large 25.7 MB test.nb contains a lot of stuffs. Open it and press Ctrl+S, take a look at the mouse cursor, we know it freezes for more than 10 seconds. - Then I copy exactly the same nb file to
C:/00
do the same thing, the freezing time reduces a lot, only 1 or 2 seconds.
Three problems:
- The saving speed depends on directory structure does not make sense to me. Very weird. After all, it is not a too deep directory at all.
- Even saving at
C:/00
, the freeze is also annoying. I still have 12.2 installed, and I do not encounter any freeze when saving in 12.2 no matter where this nb file is. - Any workaround? Or I have to fall back to 12.2 to work with some large nb file.
C:/00
back to deep folder? Of course! the freeze is very robust :) $\endgroup$