Giter Club home page Giter Club logo

Comments (5)

mrpudn avatar mrpudn commented on September 25, 2024 3

I'm onboard for Cython - after things stabilize, of course. 👍

from pycraft.

traverseda avatar traverseda commented on September 25, 2024

How do you feel about CFFI? I'd prefer pypy compatibility for the server side, if it's reasonable to do that.

I haven't really worked with either.

from pycraft.

syegulalp avatar syegulalp commented on September 25, 2024

The advantage of Cython is that it would allow us to selectively speed up hotspots in the code with relatively little work, by compiling those modules to C. CFFI is more about talking to existing C code. I don't think using Cython would preclude PyPy compatibility, though, but I'd have to check.

from pycraft.

traverseda avatar traverseda commented on September 25, 2024

Well I'm not going to get in the way of any pull requests. I don't think there's any compelling reason to keep it in a separate fork.

from pycraft.

syegulalp avatar syegulalp commented on September 25, 2024

Sure thing. I mention it only because it means the modules in question have to be essentially rewritten in Cython (it's a variant of Python with type hinting and some other changes), but we can try it out little by little and see how disruptive it is. Just compiling the code as-is yields only about a 15-20% improvement in performance; the really big gains require some rewriting.

It might also be possible to use the Cythonized version of a module if Cython is present in this particular installation, or fall back to the more general one if it's not.

from pycraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.