Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate use of cffi and/or cython for performance-sensitive code paths #352

Closed
kgriffs opened this issue Oct 25, 2014 · 2 comments
Closed

Comments

@kgriffs
Copy link
Member

kgriffs commented Oct 25, 2014

Some ideas:

  • Reimplement uri module functions in C (in whole or in part)
  • implementing a string buffer class (and make available as a separate project) to use where string concatenation is currently used
  • Routing logic (tree-based lookup in C)
@kgriffs kgriffs added this to the 0.3 milestone Oct 25, 2014
@kgriffs kgriffs changed the title Investigate use of cffi for performance-sensitive code paths Investigate use of cffi and/or cython for performance-sensitive code paths Oct 30, 2014
@kgriffs
Copy link
Member Author

kgriffs commented Oct 30, 2014

I did some exploratory testing of cffi and the thunking/marshaling is fairly expensive compared to actually running the C code. It may be better to use the Cython programming language (optionally) for certain hot code paths, but leave them as regular python when running under pypy...

@kgriffs kgriffs modified the milestone: 0.3 Mar 6, 2015
@kgriffs
Copy link
Member Author

kgriffs commented May 3, 2016

Duplicates #122

@kgriffs kgriffs closed this as completed May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant