Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
neo
Commits
14fd9cd3
Commit
14fd9cd3
authored
11 years ago
by
Julien Muchembled
Browse files
Options
Download
Email Patches
Plain Diff
TODO: ctl command to truncate DB + hint for better performance
parent
5ce3ad70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
TODO
TODO
+3
-0
neo/lib/util.py
neo/lib/util.py
+7
-1
No files found.
TODO
View file @
14fd9cd3
...
...
@@ -158,6 +158,9 @@ RC - Review output of pylint (CODE)
Admin
- Make admin node able to monitor multiple clusters simultaneously
- Send notifications (ie: mail) when a storage or master node is lost
- Add ctl command to truncate DB at arbitrary TID. 'Truncate' message
can be reused. There should also be a way to list last transactions,
like fstail for FileStorage.
Tests
- Use another mock library that is eggified and maintained.
...
...
This diff is collapsed.
Click to expand it.
neo/lib/util.py
View file @
14fd9cd3
...
...
@@ -189,7 +189,13 @@ class ReadBuffer(object):
Implementation of a lazy buffer. Main purpose if to reduce useless
copies of data by storing chunks and join them only when the requested
size is available.
"""
TODO: For better performance, use:
- socket.recv_into (64kiB blocks)
- struct.unpack_from
- and a circular buffer of dynamic size (initial size:
twice the length passed to socket.recv_into ?)
"""
def
__init__
(
self
):
self
.
size
=
0
...
...
This diff is collapsed.
Click to expand it.
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