Delphi High Performance - Second Edition: Master the art of concurrency, parallel programming, and memory management to build fast Delphi apps
暫譯: Delphi 高效能 - 第二版:掌握併發、平行程式設計與記憶體管理的藝術,以建立快速的 Delphi 應用程式

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 版本,對每個人都會有幫助。