System Variables
There are many system variables which can
affect the performance of running Lisp code ... many are already
well-known, some are less known to have performance impact. So it
is useful to set specific system variables to defined state to
improve performance and to prevent side-effects.
CMDECHO |
set as 0 |
OSMODE |
set as 0 |
DRAGMODE |
set as 0 |
PICKSTYLE |
set as 0 |
HIGHLIGHT |
set as 0 |
UCSICON |
set as 0 |
UCSFOLLOW |
set as 0 |
UCSDETECT |
set as 0 |
AUTOSNAP |
set as 0 |
BLIPMODE |
set as 0 |
LOGFILEMODE |
set as 0 |
REGENMODE |
set as 0 |
SOLIDCHECK |
set as 0 |
SNAPMODE |
set as 0 |
SELECTIONPREVIEW |
set as 0 |
Of course, the majority of these system
variables are effective in combinations with (command) only, not
with API calls.
Nevertheless, it is a good habit to set
desired system variables and restore them,
When the Lisp program switches to interactive
user-input / operations, any changed system variables should be
switched back to previous or appropriate settings.
Changing System Variables
System variables are often changed by (command
"<sysvar-name") as each system variable is also available as a
command name.
Highly recommended : never use (command "<sysvar-name") to change system
variables - always use (setvar ""<sysvar-name" value)
instead.
Execution of (command) is relatively slow, it
has several side-effects which cost performance, like triggered
command reactors, implied GUI updates, error status can not be
retrieved and so on.
© Menhirs NV. All rights reserved. |