50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>Performance considerations</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
|
|
<h2>Performance considerations</h2>
|
|
|
|
<p>The following tips can help improve performance when using <strong>qsh</strong>.</p>
|
|
|
|
<ul>
|
|
<li>Do not use command substitutions in the value of the <strong>
|
|
PS1</strong> variable. This causes a new process to be started
|
|
every time you press the <enter> key.<p></li>
|
|
|
|
<li>Use input redirection instead of cat. For example, the
|
|
following command:
|
|
|
|
<pre>
|
|
cat myfile | grep Hello
|
|
</pre>
|
|
|
|
<p>can be replaced with this command:</p>
|
|
|
|
<pre>
|
|
grep Hello < myfile
|
|
</pre>
|
|
</li>
|
|
|
|
<li>Use built-in utilities whenever possible because they are run
|
|
in the current process.<p></li>
|
|
|
|
<li>Leave the <strong>SHELL</strong> variable unset. If a script
|
|
file does not contain a "#!" on the first line, the script is run
|
|
in the current activation of <strong>qsh</strong>.<p></li>
|
|
|
|
</ul>
|
|
</body>
|
|
</html>
|
|
|