mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
Various performance improvements (#24)
* switch from array to linked list for photon queue * performance optimizations * fix tests * various fixes
This commit is contained in:
committed by
Robert Nishihara
parent
1e2b3ceac9
commit
90a2aa4bf7
@@ -290,7 +290,7 @@ class PlasmaClient(object):
|
||||
break
|
||||
return message_data
|
||||
|
||||
def start_plasma_manager(store_name, manager_name, redis_address, num_retries=5, use_valgrind=False):
|
||||
def start_plasma_manager(store_name, manager_name, redis_address, num_retries=5, use_valgrind=False, run_profiler=False):
|
||||
"""Start a plasma manager and return the ports it listens on.
|
||||
|
||||
Args:
|
||||
@@ -324,6 +324,8 @@ def start_plasma_manager(store_name, manager_name, redis_address, num_retries=5,
|
||||
"-r", redis_address]
|
||||
if use_valgrind:
|
||||
process = subprocess.Popen(["valgrind", "--track-origins=yes", "--leak-check=full", "--show-leak-kinds=all", "--error-exitcode=1"] + command)
|
||||
elif run_profiler:
|
||||
process = subprocess.Popen(["valgrind", "--tool=callgrind"] + command)
|
||||
else:
|
||||
process = subprocess.Popen(command)
|
||||
# This sleep is critical. If the plasma_manager fails to start because the
|
||||
|
||||
Reference in New Issue
Block a user