• We have used python in our auto leads website. This website providing quality >a href=”http://www.autoleadsnetwrok.net”>auto leads with a highest conversion rates. Python will help  us build a system that can store auto leads in out http://www.autoleadsnetwork.net database

  • Guest

    Speed Up Your Torrent Downloads, Get a Seedbox

    A seedbox is BitTorrent jargon for a dedicated high-speed server, used exclusively for torrent transfers. With a seedbox you’ll be able to download and upload faster than you ever imagined. Additionally, you can manage your torrents through a browser from anywhere, anytime.

    With a seedbox, you don’t even need to use a BitTorrent client on your home computer – your worries about the RIAA or MPAA spying on you are over. No more DMCA notices or warning letters from your ISP – and more importantly, no lawsuit letters will be coming either.

    Super Ratio, Super Privacy, SuperSeedBox.co.uk

  • There is no doubt that Python is much more robust platform than C++. And your examples only solidify that fact.

  • Thanks! But it’s important to note that you need to have PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp set in the environment when building the python library with setup.py. Otherwise you’ll get errors like

    ImportError: cannot import name _net_proto2___python

    when importing the protobuf c extensions.

  • Ankur

    This isnt working for me as expected.
    Without the C extensions, the speedups are about 3x and 1.5 x respectively for Serialize and ParseFromString, However, creating new message is much slower when using the cpp implementation.

    Building a c extension and importing isnt causing any change in performance that makes me suspect that the C++ implementation specialized for my PBs is not being used at all!

    Any suggestions as to what might be going wrong?

  • Andrew Fung

    Would happen to be able to share the original source for this? I’m new to Python, and I’m struggling to get the C extensions working. Thanks!

  • That’s pretty much all the source code there is to it in the original post—but I would hazard that the info in this post is likely out of date, and now that this is officially supported I would turn more toward the official docs (or other more recent resources)!

  • AAA