Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c314550e
Commit
c314550e
authored
May 10, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default speed booster and new -i option to allow passing of
the interpreter check interval.
parent
328b6d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
z2.py
z2.py
+18
-1
No files found.
z2.py
View file @
c314550e
...
...
@@ -115,6 +115,14 @@ Options:
The number of threads to use, if ZODB3 is used. The default is
%(NUMBER_OF_THREADS)s.
-i n
Set the interpreter check interval. This integer value
determines how often the interpreter checks for periodic things
such as thread switches and signal handlers. The Zope default
is 120, but you may want to experiment with other values that
may increase performance in your particular environment.
-D
Run in Zope debug mode. This causes the Zope process not to
...
...
@@ -274,6 +282,9 @@ if swhome != 'INSERT_SOFTWARE_HOME':
import
os
,
sys
,
getopt
,
string
sys
.
setcheckinterval
(
120
)
program
=
sys
.
argv
[
0
]
here
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
split
(
program
)[
0
])
Zpid
=
''
...
...
@@ -381,7 +392,7 @@ try:
raise
'Invalid python version'
,
string
.
split
(
sys
.
version
)[
0
]
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'hz:Z:t:a:d:u:w:f:p:m:Sl:2DP:rF:L:XM:'
)
'hz:Z:t:
i:
a:d:u:w:f:p:m:Sl:2DP:rF:L:XM:'
)
DEBUG
=
0
READ_ONLY
=
0
...
...
@@ -408,6 +419,12 @@ try:
try
:
v
=
string
.
atoi
(
v
)
except
:
raise
'Invalid number of threads'
,
v
NUMBER_OF_THREADS
=
v
elif
o
==
'-i'
:
try
:
v
=
string
.
atoi
(
v
)
except
:
raise
'Invalid value for -i option'
,
v
sys
.
setcheckinterval
(
v
)
elif
o
==
'-a'
:
IP_ADDRESS
=
v
elif
o
==
'-d'
:
if
v
==
'-'
:
v
=
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment