Relative Content

Tag Archive for pythoncython

Speed up string assignments to list in Cython

I used re to group a long string, and put the obtained substrings into a list based on conditions specified by a dict to output. I found a significant improvement on the speed using Cython comparing to Python, but would expect a further improvement.
A simple code in temp_test.pyx is:

Speed up string assignments to list in Cython

I used re to group a long string, and put the obtained substrings into a list based on conditions specified by a dict to output. I found a significant improvement on the speed using Cython comparing to Python, but would expect a further improvement.
A simple code in temp_test.pyx is:

Speed up string assignments to list in Cython

I used re to group a long string, and put the obtained substrings into a list based on conditions specified by a dict to output. I found a significant improvement on the speed using Cython comparing to Python, but would expect a further improvement.
A simple code in temp_test.pyx is: