Delphi High Performance - Second Edition: Master the art of concurrency, parallel programming, and memory management to build fast Delphi apps
Gabrijelčič, Primoz
- 出版商: Packt Publishing
- 出版日期: 2023-06-30
- 售價: $1,700
- 貴賓價: 9.5 折 $1,615
- 語言: 英文
- 頁數: 452
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1805125877
- ISBN-13: 9781805125877
-
相關分類:
程式語言
立即出貨 (庫存=1)
相關主題
商品描述
Discover algorithm performance, high- and low-level optimizations, and the internal behavior of programs written in the Delphi language
Purchase of the print or Kindle book includes a free PDF eBook
Key Features:
- Discover external programming libraries that will speed up your programming and code
- Learn to integrate external libraries into Delphi programs
- Build fast Delphi applications using concurrency, parallel programming, and memory management
Book Description:
Performance matters! Users hate to use programs that are not responsive to interactions or run too slow to be useful. While becoming a programmer is simple enough, you require dedication and hard work to achieve an advanced level of programming proficiency where you know how to write fast code.
This book begins by helping you explore algorithms and algorithmic complexity and continues by describing tools that can help you find slow parts of your code. Subsequent chapters will provide you with practical ideas about optimizing code by doing less work or doing it in a smarter way. The book also teaches you how to use optimized data structures from the Spring4D library, along with exploring data structures that are not part of the standard Delphi runtime library.
The second part of the book talks about parallel programming. You'll learn about the problems that only occur in multithreaded code and explore various approaches to fixing them effectively. The concluding chapters provide instructions on writing parallel code in different ways - by using basic threading support or focusing on advanced concepts such as tasks and parallel patterns.
By the end of this book, you'll have learned to look at your programs from a totally different perspective and will be equipped to effortlessly make your code faster than it is now.
What You Will Learn:
- Get to grips with algorithmic complexity and learn how to recognize it
- Use tools to determine program runtime behavior
- Speed up programs by doing less instead of more
- Discover the internal workings of Delphi data structures
- Gain an understanding of Delphi's memory manager
- Find out how to write low-level parallel programs with TThread
- Use parallel patterns from the PPL and OTL libraries to write fast code
- Include external code, written in C or C++, in Delphi programs
Who this book is for:
This book is for all Delphi programmers. Whether you're a beginner or an accomplished programmer, you will find something interesting. Even though the focus is on the latest Delphi release, the code uses only standard Delphi syntax without syntactic additions from the latest releases, and most of it should compile and run in any Delphi from XE7 onward. If you're using an older version of Delphi, don't despair! Most of the concepts in this book do not depend on a specific Delphi version and will be useful for everyone.
商品描述(中文翻譯)
探索使用Delphi語言編寫的程式的演算法效能、高低層優化和內部行為。購買印刷版或Kindle書籍將包含免費的PDF電子書。
主要特點:
- 探索能加快程式編寫和程式碼的外部程式庫
- 學習將外部程式庫整合到Delphi程式中
- 使用並行處理、平行程式設計和記憶體管理來建立快速的Delphi應用程式
書籍描述:
效能至關重要!使用者不喜歡使用反應遲鈍或運行速度太慢而無法使用的程式。儘管成為一名程式設計師相對簡單,但要達到高級程式設計水平,需要付出奉獻和努力,以掌握如何撰寫快速的程式碼。
本書首先幫助您探索演算法和演算法複雜度,並介紹可幫助您找到程式碼中慢部分的工具。隨後的章節將提供實用的優化程式碼的想法,例如減少工作量或以更智能的方式執行工作。本書還教您如何使用Spring4D程式庫中的優化資料結構,並探索不屬於標準Delphi運行時程式庫的資料結構。
本書的第二部分討論並行程式設計。您將了解僅在多執行緒程式碼中才會出現的問題,並探索解決這些問題的各種方法。最後幾章提供了有關以不同方式撰寫並行程式碼的指示,包括使用基本執行緒支援或專注於任務和並行模式等高級概念。
通過閱讀本書,您將學會從完全不同的角度看待程式,並能輕鬆地使程式碼比現在更快。
學到的內容:
- 瞭解演算法複雜度並學習如何識別它
- 使用工具來確定程式的運行時間行為
- 通過減少工作量而不是增加工作量來加快程式
- 探索Delphi資料結構的內部運作
- 瞭解Delphi的記憶體管理器
- 學習如何使用TThread撰寫低層級並行程式
- 使用PPL和OTL程式庫的並行模式撰寫快速程式碼
- 在Delphi程式中包含使用C或C++編寫的外部程式碼
本書適合所有Delphi程式設計師。無論您是初學者還是經驗豐富的程式設計師,都會找到有趣的內容。儘管重點放在最新的Delphi版本上,但程式碼僅使用標準Delphi語法,不包含最新版本的語法擴充,大部分程式碼應該可以在任何從XE7版本開始的Delphi中編譯和運行。如果您使用較舊版本的Delphi,不要灰心!本書中的大部分概念不依賴於特定的Delphi版本,對所有人都有用。