view python/Makefile.am @ 360:26c48ea9d896

From Jeffrey Morlan: pst_build_id_ptr reads the Block BTree into a linked list, which pst_getID does a linear scan through. For large PSTs that have millions of blocks, this is extremely slow - almost all time is spent in pst_getID. Since the BTree entries must be in order, this can be dramatically improved by reading into an array and using binary search.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Jul 2016 10:21:08 -0700
parents 5b3e7661adad
children
line wrap: on
line source

if PYTHON_INTERFACE

if PLATFORM_WIN32
    NO_UNDEFINED = -no-undefined
else
    NO_UNDEFINED =
endif

pythonlibdir            = $(libdir)/@PYTHON_VERSION@/site-packages
pythonlib_LTLIBRARIES   = _libpst.la
_libpst_la_LDFLAGS      = -module $(NO_UNDEFINED) -avoid-version
_libpst_la_SOURCES      = python-libpst.cpp
_libpst_la_LIBADD       = -l@BOOST_PYTHON_LIB@ ../src/libpst.la

# set the include path found by configure
INCLUDES= -I$(srcdir)/.. -I$(srcdir)/../src $(all_includes) -I$(PYTHON_INCLUDE_DIR)

endif