Numba 两行代码13x加速

原文: PyCoder's Weekly - Issue #514

pycoder

  • 220302 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
  • 220302 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Learn how to use Python’s assert statement to document, debug, and test code in development.

(是也乎:

Assert

)

Using threads to download multiple books from Project Gutenberg at the same time.

Troubleshoot Python Application Performance Errors Fast With Datadog’s end-to-end Tracing Datadog’s APM generates detailed flame graphs to help you identify bottlenecks and latency in your code. Navigate seamlessly between Python application traces to relevant logs and metrics to troubleshoot and resolve the application error without switching tools or context. Try Datadog APM free → DATADOGSPONSOR

Creating interactive visual output using ipywidgets.

(是也乎:

其实动态影响的可视化没有多少应用场景, 一般政府大楼中的大数据屏,都不是触屏, 而且也没有动机去改变什么参数...

)

(是也乎:

是的, 广大 Py 2.7 项目依然可以稳定使用

)

(是也乎:

是的, 放弃了开源系统, 还是给有钱的 M$ 平台来追踪吧, 反正免费的.

)

(是也乎:

WoW 转正了...

------------------------------------------------------
    parser |  exec time | performance (more is better)
-----------+------------+-----------------------------
     rtoml |    0.891 s | baseline (100%)
  pytomlpp |    0.969 s | 91.90%
     tomli |        4 s | 22.25%
      toml |     9.01 s | 9.88%
     qtoml |     11.1 s | 8.05%
   tomlkit |       63 s | 1.41%

等等,竟然不是 github 官方的?

)


探讨/吐糟

Discussions

Discussion about Oleg Żero’s article of the same name.

(是也乎:

流变, 看项目阶段..

)


文章/教程/嗯哼

Articles, Tutorials and Talks

Linear regression is a statistical and machine learning technique, learn how to do it in Python.

(是也乎:

Linear

)

Outlier detection is the process of identifying data points that have extreme values compared to the rest of the distribution. Python offers a number of packages for carrying this analysis out.

(是也乎:

测试边界值锚定技巧, 不过类似 Fuzzing 模块都能自动嗯哼出来了?

)

“Take control of multiple Python installations in Windows with the py launcher, available as part of a standard Python installation.”

(是也乎:

简单来说, 用 docker/WSL 在一个正常的开发环境中用吧...

)

What to consider for in terms of the current data situation, roadmaps, role and expectations, tooling, and more.

(是也乎:

伪大数据项目识别技巧

)

What Docker is, why you should use it, and how to deploy a Jupyter notebook in a container.

What to do when you get stuck on a coding issue for more than 30 minutes.

(是也乎:

在蟒营®一直说 42分钟 法则, 完全一致的劝戒

)

Practice questions to perfect your NumPy skills. Answer key available.

How to use Pytest’s Mock Generator to simplify your test writing.

(是也乎:

没错, 所以, 有趣的哪...

pksol/pytest-mock-generator: A pytest fixture wrapper for https://pypi.org/project/mock-generator

)

How to use the Strava API and Python to analyze race day data.

Using Numba, a just-in-time compiler for NumPy arrays.

(是也乎:

NumPy 是 Pandas 的性能瓶颈, 所以... )

Testing when using weak-referenced objects.

(是也乎:

淦...多么痛的领悟...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

叕一个静态代码分析器, 最近火起来的 开发效能, 都集中在各自代码分析结论基础上,

)

(是也乎:

pyTermTk

猛烈哪, 几乎将 Tk 所有能力都迁移到 终端里来了

)

(是也乎:

简直就是项目笔记...作者经历过的项目, 用过什么模块, 都整理出来了...

)


📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)


PS:

PPS:

不觉中蟒周刊快译已经到了第10个年头

去年开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.


好文笔,感叹号年度配额: 1/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->