推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
HkMuxxx
V2EX  ›  Python

用 Python 写的一个基于 s2sphere 库的 udf 函数,运行的特别慢

  •  
  •   HkMuxxx · Jan 11, 2024 · 3478 views
    This topic created in 991 days ago, the information mentioned may be changed or developed.

    用 s2sphere 库做了一个 odps udf 函数,运行的巨慢,会是什么原因? 同样都是空间地理算法,geohash 就很快,Google S2 是要比 geohash 复杂,但同样是 10 亿行,用 geohash 只跑了十几分钟,用 s2 跑了 19 小时才跑 30%🤣

    1 replies  •  2024-01-11 20:11:32 +08:00
    noahliaszn
        1
    noahliaszn  
       Jan 11, 2024
    viztracer trace 一下哪里跑的慢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3328 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:38 · PVG 12:38 · LAX 21:38 · JFK 00:38
    ♥ Do have faith in what you're doing.