编程语言:Python
禁用Python的GC机制后,Instagram性能提升10%
通过关闭Python垃圾回收机制,Instagram的性能可以提高10%。是的,你没有听错!通过禁用GC,我们可以减少内存占用并提高CPU LLC缓存命中率。如果你想知道为什么,那么就来阅读这篇文章!
python词云 wordcloud 入门
构建词云的方法很多, 但是个人觉得python的wordcloud包功能最为强大,可以自定义图片. 官网: https://amueller.github.io/word_cloud/ github: https://github.com/amueller/word_cloud 例子: 字体使用的是 CabinSketch-Bold.ttf 安装
What does a . in an import statement in Python mean?
I'm looking over the code for Python's multiprocessing module, and it contains this line: from ._multiprocessing import win32, Connection, PipeConnection instead of from _multiprocessing import ...