Skip to main content
Participant
April 4, 2007
Question

how to optimize execution time of lot commands

  • April 4, 2007
  • 1 reply
  • 584 views
hello,

in my plugin i do a lot of textinsert cmds, delete cmds, attribute setting cmds. now i wonder why this process is very slow.
how can i execute many commands as fast as possible?
disable a command/undo stack? how?

thanks,

juergen
This topic has been closed for replies.

1 reply

Participating Frequently
December 3, 2009

Hello, Jürgen!

Have you found the solution? A have the same problem...

And can anyone help me with "How to prevent placing a command to the undo stack? It is not possible to undo my command."

Many thanks, Serge

Participating Frequently
December 8, 2009

IDataBase *myDB = ...;

ASSERT(myDB );

myDB ->BeginTransaction();

InterfacePtr<ICommandMgr> commandMgr(temporyDoc, UseDefaultIID());

ASSERT(commandMgr);

commandMgr->SetUndoSupport(kFalse);

//....

myDB ->EndTransaction();