• Guillaume Seguin's avatar
    Use a fixed-size deque for storing the log · 16208aec
    Guillaume Seguin authored
    deque is much better fitted than a simple Python list
    Indeed, a standard Python list is stored as an array, and has to be reallocated
    all the time, while a deque has very fast operation on both ends, and the fixed
    size mode will automatically drop first element when pushing to a full deque.
    Also it was crazy to store the whole log. Storing 10000 log lines seems decent
    and shouldn't take way too much space (less than 512KB based on a quick
    estimation).
    This might fix #292 and #353.
    16208aec
Name
Last commit
Last update
images Loading commit data...
locale Loading commit data...
printrun Loading commit data...
server Loading commit data...
testfiles Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
GCodeAnalyzer.py Loading commit data...
P-face.ico Loading commit data...
P-face.png Loading commit data...
README.cleanup Loading commit data...
README.i18n Loading commit data...
README.md Loading commit data...
auth.config Loading commit data...
custombtn.txt Loading commit data...
dot.pronsolerc.example Loading commit data...
http.config Loading commit data...
plater.ico Loading commit data...
plater.png Loading commit data...
plater.py Loading commit data...
printcore.py Loading commit data...
pronserve.py Loading commit data...
pronsole.ico Loading commit data...
pronsole.png Loading commit data...
pronsole.py Loading commit data...
pronterface.py Loading commit data...
setup.py Loading commit data...