##// END OF EJS Templates
check whether all engines are at HWM in a few places...
check whether all engines are at HWM in a few places avoids calling maybe_run on the entire queue when we know that no tasks can be run. This caused an expensive O(N) operation every time an engine just became not-full, which is every time a task finishes in the default case of HWM=1.

File last commit:

r9355:fa603a8f
r10074:10694996
Show More
kernel.py
12 lines | 254 B | text/x-python | PythonLexer
"""[DEPRECATED] Utilities for connecting to kernels
Moved to IPython.kernel.connect
"""
import warnings
warnings.warn("IPython.lib.kernel moved to IPython.kernel.connect in IPython 0.14",
DeprecationWarning
)
from IPython.kernel.connect import *