V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hezhiming1993
V2EX  ›  问与答

Python Cython 适合适用在什么具体业务场景(能落地的)?

  •  
  •   hezhiming1993 · Oct 19, 2019 · 765 views
    This topic created in 2388 days ago, the information mentioned may be changed or developed.
    [标题]
    Python Cython 适合适用在什么具体业务场景(能落地的)?

    [实际现象]
    都说 Cython 好, 都说能提高性能,但是我们好像忘记初衷了, 「我们的问题是什么, 我们的目的是什么, 要达到什么样的目的」?

    (别说「提高性能」之类的, 大家都知道, 需要具体的落地业务场景例子)



    [上下文环境(重要语境)] && [场景]
    * Ubuntu Linux 服务端 Python3.6
    * Cython 最新

    [尝试解决 & 我的推测]
    * 「敏感代码加密」. 这是我经历的比较具体的一个业务场景例子(软件会分发出去).
    不改动任何 py 源码, 只是借助 Cython,将 py 源码打包成 so 文件,打包后将 py/pyc 删掉,整体无感知, 且达到目的





    https://github.com/hezhiming/my_questions/blob/master/questions.txt
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2515 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:27 · PVG 16:27 · LAX 01:27 · JFK 04:27
    ♥ Do have faith in what you're doing.