Skip to Content
高效能PYTHON程式設計
book

高效能PYTHON程式設計

by Micha Gorelick, Ian Ozsvald
August 2015
Intermediate to advanced
384 pages
7h 42m
Chinese
GoTop Information, Inc.
Content preview from 高效能PYTHON程式設計
透過效能分析找出瓶頸
|
51
3 10962 1 1050504 1 91895568 98 str
4 5767 0 464952 0 92360520 98 tuple
5 199 0 210856 0 92571376 98 dict of type
6 72 0 206784 0 92778160 98 dict of module
7 1592 0 203776 0 92981936 99 types.CodeType
8 319 0 202984 0 93184920 99 dict (no owner)
9 1556 0 186720 0 93371640 99 function
<92 more rows. Type e.g. '_.more' to view.>
如第 3 個部分所示,在計算 Julia 結果之後,我們已經使用了 94 MB RAM。除了複數
之外,我們現在有一大堆整數,並且有更多項目被儲存在串列裡。
hpy.setrelheap()
能夠被用來建立記憶體組態的檢查點,因此,隨後的
hpy.heap()
呼叫
將產生與這個檢查點的差異,這樣的話,你就能夠避免看到 Python 的內部機制,以及
在此之前的記憶體狀態。
使用 dowser 針對實例化的變數進行即時的描繪
Robert Brewer
dowser
掛鉤到執行程式碼的名稱空間(namespace),並且在 Web 瀏覽
器裡,透過 CherryPy 介面,針對實例化的變數提供即時的描繪。每個被追蹤的物件都 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino
手把手教会你linux

手把手教会你linux

桑德.范.乌格特
流畅的Python

流畅的Python

Luciano Ramalho
精通機器學習

精通機器學習

Aurélien Géron

Publisher Resources

ISBN: 9789863477105