Hi all,
In methods that cycle to the spreads of large documents (50 A4 pages as an example), things are slowing down considerably after, lets say, 10 pages. The actions performed by those methods are, in general, tagging text, resize images and so on. If i split up the document in several 1 spread-documents, the sum of time needed for the same processes is 5 times faster!
The increase of the undo history is certainly a factor. But how can you disable the undo-history or flush the history? It can be done for scripts (as a doScript parameter) , but for Java? Somewhere on a forum for javascript i found, an intermediate "save as" to the same document path, flushes the undo history, but that didn't accelerate the processes.
Another issue is the increase of the used memory. Temporarily Indesignserver performs an automatic memory purge (and logs this as an error - i don't know why). Is this possible to control this by code? I understood the "serverTest" method is only intended for the debug version and anyhow, i couldn't get it to work.
So, i'll narrow this thread to 3 questions:
1) Is the memory management documented somewhere?
2) Can the undo mechanism be disabled in Java or C++?
3) Can the memory be purged by code (in Java or C++)?
Any input is gratefully welcome!
Thanks in advance.
Bart Devos.