万本电子书0元读

万本电子书0元读

顶部广告

Delphi High Performance电子书

售       价:¥

18人正在读 | 0人评论 6.2

作       者:Primož Gabrijelčič

出  版  社:Packt Publishing

出版时间:2018-02-26

字       数:45.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build fast, scalable, and high performing applications with Delphi About This Book ? Build efficient and concurrent applications in Delphi with focused examples ? Identify performance bottlenecks and apply the correct algorithm to increase the performance of applications. ? Delve into parallel programming and memory management to optimize your code Who This Book Is For This book is for Delphi developers who would like to build high performance applications with Delphi. Prior knowledge of Delphi is assumed. What You Will Learn ? Find performance bottlenecks and easily mitigate them ? Discover different approaches to fix algorithms ? Understand parallel programming and work with various tools included with Delphi ? Master the RTL for code optimization ? Explore memory managers and their implementation ? Leverage external libraries to write better performing programs In Detail Delphi is a cross-platform Integrated Development Environment (IDE) that supports rapid application development for Microsoft Windows, Apple Mac OS X, Google Android, iOS, and now Linux with RAD Studio 10.2. This book will be your guide to build efficient high performance applications with Delphi. The book begins by explaining how to find performance bottlenecks and apply the correct algorithm to fix them. It will teach you how to improve your algorithms before taking you through parallel programming. You’ll then explore various tools to build highly concurrent applications. After that, you’ll delve into improving the performance of your code and master cross-platform RTL improvements. Finally, we’ll go through memory management with Delphi and you’ll see how to leverage several external libraries to write better performing programs. By the end of the book, you’ll have the knowledge to create high performance applications with Delphi. Style and approach This book will take a step-by-step approach with focused examples to teach you how to increase the performance of applications.
目录展开

Title Page

Copyright and Credits

Delphi High Performance

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Conventions used

Get in touch

Reviews

About Performance

What is performance?

Different types of speed

Algorithm complexity

Big O and Delphi data structures

Data structures in practice

Mr. Smith's first program

Looking at code through the Big O eyes

Don't guess, measure!

Profiling with TStopwatch

Profilers

AsmProfiler

Sampling Profiler

AQTime

Nexus Quality Suite

Summary

Fixing the Algorithm

Responsive user interfaces

Updating a progress bar

Bulk updates

Virtual display

Caching

Dynamic cache

Speeding up SlowCode

Summary

Fine-Tuning the Code

Delphi compiler settings

Code inlining control

Optimization

Record field alignment

Assertions

Overflow checking

Range checking

Extracting common expressions

The helpful CPU window

Behind the scenes

A plethora of types

Simple types

Strings

Arrays

Records

Classes

Interfaces

Optimizing method calls

Parameter passing

Method inlining

The magic of pointers

Going the assembler way

Returning to SlowCode

Summary

Memory Management

Optimizing strings and array allocations

Memory management functions

Dynamic record allocation

FastMM internals

Memory allocation in a parallel world

Replacing the default memory manager

ScaleMM

TBBMalloc

Fine-tuning SlowCode

Summary

Getting Started with the Parallel World

Processes and threads

When to parallelize the code?

Most common problems

Never access UI from a background thread

Simultaneous reading and writing

Sharing a variable

Synchronization

Critical sections

Other locking mechanisms

A short note on coding style

Shared data with built-in locking

Interlocked operations

Object life cycle

Communication

Windows messages

Synchronize and Queue

Polling

Performance

Third-party libraries

Summary

Working with Parallel Tools

TThread

Advanced TThread

Setting up a communication channel

Sending messages from a thread

Implementing a timer

Summary

Exploring Parallel Practices

Tasks and patterns

Variable capturing

Tasks

Exceptions in tasks

Parallelizing a loop

Thread pooling

Async/Await

Join

Join/Await

Future

Parallel for

Pipelines

Creating the pipeline

Stages

Displaying the result and shutting down

Summary

Using External Libraries

Using object files

Object file formats

Object file linking in practice

Using C++ libraries

Using a proxy DLL in Delphi

Summary

Best Practices

About performance

Fixing the algorithm

Fine-tuning the code

Memory management

Getting started with the parallel world

Working with parallel tools

Exploring parallel practices

Using external libraries

Final words

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部