taos-connector-python icon indicating copy to clipboard operation
taos-connector-python copied to clipboard

Enh/cython

Open hadrianl opened this issue 2 years ago • 1 comments

use cython to wrap dynamic linking into python object

  • add serval pyx files(_cinterface.pyx, _objects.pyx, _constant.pyx, _parser.pyx), which can replace the legacy objects
  • build.py, cython , setuptools and compiler are required to build these code
  • faster, more pythonic and async supported
  • not compatible with earlier taos versions yet
  • developed under python 3.10.12, taos client 3.1.0.0, taos server 3.1.0.0, not fully tested with other versions yet
  • add more examples and tests (further test is still needed)
  • query 3~4 times faster when test with taosbenchmark data
  • I left the other python file almost untouch to let you guys determine when and how to switch these and the legacy code
  • the comments with FIXME, BUG need to be reviewed, I`m not sured about these code

hadrianl avatar Sep 13 '23 08:09 hadrianl

能否关注一下这个pr @zitsen @sunpe @AdamEECS

markcheney1 avatar Nov 21 '23 03:11 markcheney1