zepheira / pybibframe

Open-source tools for working with BIBFRAME (see: http://bibframe.org), by default BIBFRAME Lite (see: http://bibfra.me) and more generally Library Linked Data. For some background thoughts see: https://medium.com/library-link-network/libraries-jet-fuel-and-the-information-age-8b28d5eb1339
Apache License 2.0
23 stars 13 forks source link

pypy tryouts #17

Open uogbuji opened 7 years ago

uogbuji commented 7 years ago

Pypy now supports Python 3.5, thus meeting the minimum for pybf. Let's see how that works in practice, and whether we get a good speed-up.

uogbuji commented 7 years ago

Trying on Linux Mint 18.1. System info:

screenshot from 2017-04-04 11-49-35

Grabbed the Ubuntu binary, despite warnings about exact distro.

wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.7.1-linux64.tar.bz2
tar xvf pypy3-v5.7.1-linux64.tar.bz2 
cd pypy*

Basics seem to work:

$ ./bin/pypy3 
Python 3.5.3 (2875f328eae2, Apr 02 2017, 17:58:49)
[PyPy 5.7.1-beta0 with GCC 6.2.0 20160901] on linux
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``today we're faster than yesterday
(usually)''
>>>> 

After making some changes to pybf & versa (e.g. to bundle a pure Python murmurhash3), it seems to work fine! I also added a requirements-pypy.txt which does not include the C mmh3.