Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
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
BTrees
Commits
5e70103d
Commit
5e70103d
authored
Mar 16, 2020
by
Éloi Rivard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
developper documentation
parent
87599a74
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docs/development.rst
docs/development.rst
+4
-4
docs/index.rst
docs/index.rst
+1
-0
No files found.
BTrees/Development.tx
t
→
docs/development.rs
t
View file @
5e70103d
...
...
@@ -313,8 +313,8 @@ invariant still holds, with ``lo==i`` and ``hi==lo+1==i+1``::
so ``i`` is again the correct answer.
Optimization points
:
-------------------
-
Optimization points
-------------------
+ Division by 2 is done via shift rather via "/2". These are signed ints, and
almost all C compilers treat signed int division as truncating, and shifting
...
...
@@ -405,8 +405,8 @@ correct to exit with ``_cmp`` non-zero, and ``i==lo`` is again the index at
which ``k`` belongs.
Optimization points
:
-------------------
-
Optimization points
-------------------
+ As for ``BTREE_SEARCH``, shifting of signed ints is cheaper than division.
...
...
docs/index.rst
View file @
5e70103d
...
...
@@ -14,6 +14,7 @@ Contents:
overview
api
development
====================
Indices and tables
...
...
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