Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Nov 4, 2018
2 parents b8ce1f4 + 59ea45f commit c55488d
Show file tree
Hide file tree
Showing 7 changed files with 1,370 additions and 185 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ make benchmark

Number of branches: 1024 branches (can be increased)

Number of commits per branch: 2^32 = 4,294,967,295 commits

- This value can be increased to 64 bits
Number of commits per branch: 2^64 = 18,446,744,073,709,551,615 commits

Concurrent db connections to the same db: XXX readers

Expand Down
28 changes: 23 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,30 +124,48 @@ endif
clean:
rm -f *.o $(LIBRARY) $(LIBNICK1) $(LIBNICK2) $(LIBNICK3) $(LIBNICK4) $(SSHELL)

test: test/test.py
test: test/test.py test/test-64bit-commit-ids.py test/varint.py
ifeq ($(OS),Windows_NT)
ifeq ($(PY_HOME),)
@echo "PY_HOME is not set"
else
cd $(PY_HOME)/DLLs && [ ! -f sqlite3-orig.dll ] && mv sqlite3.dll sqlite3-orig.dll || true
cp litetree-0.1.dll $(PY_HOME)/DLLs/sqlite3.dll
cp $(LMDBPATH)/lmdb.dll $(PY_HOME)/DLLs/lmdb.dll
cd test && python -mpip install lmdb
cd test && python test.py -v
cd test && python test-64bit-commit-ids.py -v
endif
else ifeq ($(OS),OSX)
else # not Windows
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
sudo easy_install cffi
cd test && sudo easy_install lmdb
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
git clone --depth=1 https://github.com/dw/py-lmdb
cd py-lmdb && sudo LMDB_FORCE_CPYTHON=1 python setup.py install
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
sudo python -c "import cffi"
sudo python -c "import lmdb"
endif
endif
endif
ifeq ($(OS),OSX)
ifneq ($(shell python -c "import pysqlite2.dbapi2" 2> /dev/null; echo $$?),0)
ifneq ($(shell [ -d $(LIBPATH2) ]; echo $$?),0)
@echo "run 'sudo make install' first"
endif
git clone https://github.com/ghaering/pysqlite
git clone --depth=1 https://github.com/ghaering/pysqlite
cd pysqlite && echo "include_dirs=$(INCPATH)" >> setup.cfg
cd pysqlite && echo "library_dirs=$(LIBPATH2)" >> setup.cfg
cd pysqlite && python setup.py build
cd pysqlite && sudo python setup.py install
endif
cd test && python test.py -v
else
cd test && python test-64bit-commit-ids.py -v
else # Linux
cd test && LD_LIBRARY_PATH=.. python test.py -v
cd test && LD_LIBRARY_PATH=.. python test-64bit-commit-ids.py -v
endif
endif

benchmark: test/benchmark.py
Expand All @@ -165,7 +183,7 @@ ifneq ($(shell python -c "import pysqlite2.dbapi2" 2> /dev/null; echo $$?),0)
ifneq ($(shell [ -d $(LIBPATH2) ]; echo $$?),0)
@echo "run 'sudo make install' first"
endif
git clone https://github.com/ghaering/pysqlite
git clone --depth=1 https://github.com/ghaering/pysqlite
cd pysqlite && echo "include_dirs=$(INCPATH)" >> setup.cfg
cd pysqlite && echo "library_dirs=$(LIBPATH2)" >> setup.cfg
cd pysqlite && python setup.py build
Expand Down
Loading

0 comments on commit c55488d

Please sign in to comment.