Skip to content

Commit

Permalink
Merge pull request #126 from azmeuk/docs
Browse files Browse the repository at this point in the history
Developper documentation improvements
  • Loading branch information
azmeuk committed Mar 16, 2020
2 parents 87599a7 + 5e70103 commit 7d439db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BTrees/Development.txt → docs/development.rst
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -14,6 +14,7 @@ Contents:

overview
api
development

====================
Indices and tables
Expand Down

0 comments on commit 7d439db

Please sign in to comment.