跳至內容
Main menu
Main menu
move to sidebar
hide
Navigation
Main Page
Help
Browse
Cookbook
Wikijunior
Featured books
Recent changes
Random book
Using Wikibooks
Community
Reading room forum
Community portal
Bulletin Board
Help out!
Policies and guidelines
Contact us
Search
Search
Donations
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Discussion for this IP address
C++ 最佳化/程式碼最佳化/編譯時最佳化
Add languages
Add links
Book
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Sister projects
Wikipedia
Wikiversity
Wiktionary
Wikiquote
Wikisource
Wikinews
Wikivoyage
Commons
Wikidata
MediaWiki
Meta-Wiki
Print/export
Create a collection
Download as PDF
Printable version
In other projects
外觀
移至側邊欄
隱藏
來自華夏公益教科書,一個面向開放世界的開放書籍
<
Optimizing C++
|
程式碼最佳化
如果可能,將重用程式碼放入 .cpp 檔案中,並作為可重用庫進行編譯,而不是將更多程式碼放置在標頭檔案中,以最大程度減少冗餘編譯。
使用模板透過編譯您使用的介面部分來加速編譯時間,而不是始終編譯所有可能性,這裡的一個特定用例是宏。
最小化包含的程式碼,僅包含您需要的準確功能,而不是使用包含所有內容的檔案
使用前向宣告以避免包含檔案,因為它完全消除了程式碼的冗餘編譯。
類別
:
書籍:C++ 最佳化
華夏公益教科書