- 浏览: 96070 次
- 性别:
- 来自: HK
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
我有个用py写的 crc-ccitt的验证程序(实现效率并不高)
这么个程序用cython简单转换一下。速度提高了70x ...
出于无聊,我把这段代码变为c++,用swig生成一个接口调用。
结果是:.... 这两者速度相差无几,可以忽略。。。。
再测试。。。直接拿boost的crc来用。用cython调用。
速度比py提高 大约 200x。是我自己写的校验 快 2.5x
左右。
这个现象说明啥?
1:如果像我这种半桶水的家伙,写的c++代码未必有cy生成的快
2: 写得好的c++确实很快,例如boost的crc。
出于好奇我看了一下它的实现,发觉甚为精妙,而且也不难读,比起lambda之类的hpp 自然容易上手许多。
继续努力............
发表评论
-
static building lxml
2014-08-13 19:15 758well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 538quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 505download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 587It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 825It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 932caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 652link: http://paulbourke.net/geo ... -
pypy的一个测试
2012-06-09 16:15 1574pypy-1.9 昨天已经发布,据称性能又有所提高。 ... -
a naive way to use dictcursor of psycopg2 with twisted adbapi
2012-05-03 03:14 1119make a new file called fakedb.p ... -
build psycopg2 on windows with vs
2012-05-02 02:16 832prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1209I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 810Pb (stands for Perspecti ... -
change buffer size in order to send chunks data in ampoule
2011-12-03 16:08 762ampoule use name pipe to commun ... -
which one is thread safe?
2011-09-21 12:31 875quote: It's not so much tha ... -
cython的另类用途
2011-08-04 02:30 1514都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制 ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 755make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 687pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1398现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 635edit py/Lib/distutils/msvc9comp ... -
speeding up python
2011-06-03 15:36 842python确实是十分慢的语 ...
相关推荐
[Packt Publishing] Cython 编程学习教程 (英文版) [Packt Publishing] Learning Cython Programming (E-Book) ☆ 图书概要:☆ Expand your existing legacy applications in C using Python Overview Extend ...
It’s possible with Cython, the compiler and hybrid programming language used by foundational packages such as NumPy, and prominent in projects including Pandas, h5py, and scikits-learn. In this ...
Cython封装Callback函数文章 示例 http://blog.csdn.net/i2cbus/article/details/18415333
Cython: A Guide for Python Programmers covers all you need to know about the eponymous creole programming language and Python-to-C compiler. If you have heard of Cython and want to find out more, or ...
参考Cython官方文档编写而来的一个Cython封装C++的示例demo,可入门学习。
此为适用于linux系统python3.6的cython安装包,版本为0.29
cython_bbox-0.1.3 未修改pip源码
python库。 资源全名:Cython-0.29.3.tar.gz
Learning Cython Programming
Python第三方包 Cython
Cython-0.29.30-py3-none-any.whl
引言 通常,在 Python 中写循环(特别是多重循环)非常的慢,在文章 //www.jb51.net/article/133807.htm中,我们的...cimport cython DTYPE = np.float ctypedef np.float_t DTYPE_t def update_state(np.ndarray[DTYP
详细介绍了Cython文件在window与linux下的编译,以实际例子说明。
OrderedDict的Cython实现
Cython-0.29.23-cp27-cp27m-win32
Cython是一个编程语言,它通过类似Python的语法来编写C扩展并可以被Python调用.既具备了Python快速开发的特点,又可以让代码运行起来像C一样快,同时还可以方便地调用C library。译出最终的Python可调用的模块。
由python、C、Cython实现的二叉树树源码。树是一种重要的非线性数据结构,直观地看,它是数据元素(在树中称为结点)按分支关系组织起来的结构,很象自然界中的树那样。树结构在客观世界中广泛存在,如人类社会的...
Cython-0.23.3.tar.gz : Cython-0.23.3安装包
最近的MOT杀出了一匹黑马[FairMOT](https://zhuanlan.zhihu.com/p/131430303),于是我心痒难耐想拿来试试,我是在自己笔记本上跑的,但是安装环境的时候cython-bbox一直安装报错,作为一只初级菜鸟只能到处找博客...