Learning .NET High-performance Programming
eBook - ePub

Learning .NET High-performance Programming

Antonio Esposito

Compartir libro
  1. 304 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Learning .NET High-performance Programming

Antonio Esposito

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Learning .NET High-performance Programming un PDF/ePUB en línea?
Sí, puedes acceder a Learning .NET High-performance Programming de Antonio Esposito en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming in C#. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781785288463
Edición
1

Learning .NET High-performance Programming


Table of Contents

Learning .NET High-performance Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Performance Thoughts
Understanding performance
Performance as a requirement
Performance engineering
Performance aspects
Latency
Throughput
Resource usage
Availability/reliability
Scalability
Efficiency
Class of applications
Case study: performance aspects of a desktop application
Case study: performance aspects of a mobile application
Case study: performance aspects of a server application
Performance concerns as time changes
Technical overview
Multithreaded programming
Parallel programming
Distributed computing
Grid computing
Summary
2. Architecting High-performance .NET Code
Software architecture
Performance concerns about architecture
Object-oriented design principles
The single responsibility principle
The open-closed principle
The Liskov substitution principle
The interface segregation principle
The dependency inversion principle
Common designs and architectures
Layered architecture
Performance concerns
Model-View-Controller and ASP.NET MVC
Performance concerns
Model-View-ViewModel and XAML
Performance concerns
The 3-tier architecture
Performance concerns
Service-Oriented Architecture (SOA)
Standardized service contract
Service loose coupling
Service abstraction
Service reusability
Service autonomy
Service statelessness
Service discoverability
Service composability
Performance concerns
Architecture comparison
Common platform architectures
Architecting desktop applications
Architecting mobile applications
Architecting web applications
Architecting cloud web applications
Performance considerations
Caching, when and where
PLINQ everywhere
Inversion of Control (IoC)
Lazy loading
Reusability of code
Agnostic versus idiom-powered implementation
Short coding
Remote computation
Cloud versus on-premise applications
Summary
3. CLR Internals
Introduction to CLR
Memory management
Garbage collection
Large object heap
Collection tuning
Working with AppDomains
IDisposable interface
Threading
Multithreading synchronization
Locks
Signaling locks
Drawbacks of locks
Exception handling
Summary
4. Asynchronous Programming
Understanding asynchronous programming
Asynchronous programming theory
Asynchronous Programming Model (APM)
Event-based Asynchronous Pattern (EAP)
Task-based Asynchronous Pattern (TAP)
Task creation
Task synchronization
Task exception handling
Task cancellation
Task continuation
Task factories
Task UI synchronization
Async/await
Summary
5. Programming for Parallelism
Parallel programming
Task parallelism
Data parallelism
Task parallelism with TPL
Data parallelism with TPL
ThreadPool tuning
Parallel execution abortion
Partitions
Sliding parallel programming
Integrated querying with LINQ
Data parallelism with PLINQ
Partitioning optimization
Summary
6. Programming for Math and Engineering
Introduction
Evaluating the performance of data types
BigInteger
Half-precision data type
Real-time applications
Case study: Fourier transform
Rolling average
Low-pass filtering for Audio
Sliding processing
Summary
7. Database Querying
Introduction
Overview of ADO.NET
An overview of Entity Framework
Advanced querying
Entity Framework querying optimization
Querying execution lifecycle
Querying approaches
Performance thoughts
Entity Framework persistence optimization
Performance comparison
Stream-like querying
ADO.NET bulk copy
Summary
8. Programming for Big Data
What is big data?
Architecting big data solutions
Case study – automotive big data system
Microsoft Azure for big data
Service Bus Topic
AppFabric Cache
Redis Cache
Simplified grid computing
Lookup programming
Summary
9. Analyzing Code Performance
Software profiling
Profiling with Visual Studio
Instrumentation profiling
The analysis report comparison
Testing with Visual Studio 2013
The Integration test
Performance-related tests
TDD
Test and Continuous Integration
Static program analysis
Code analysis
Code metrics
Summary
Index

Learning .NET High-performance Programming

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1260615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-846-3
www.packtpub.com

Credits

Author
Antonio Esposito
Reviewers
Altaf Hussain
Thomas Krause
Chad D. Morgan
Newton Sheikh
Commissioning Editor
Dipika Gaonkar
Acquisition Editor
Larissa Pinto
Content Development Editor
Amey Varangaonkar
Technical Editor
Rohith Rajan
Copy Editors
Charlotte Carneiro
Ameesha Green
Puja Lalvani
Vikrant Phadke
Project Coordinator
Suzanne Coutinho
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Rekha Nair
Graphics
Jason Monteiro
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Antonio Esposito has been an experienced software developer, architect, and trainer since 2002. He started programming in BASIC on MS-DOS 3 at the age of 8 and still loves programming on Microsoft products. An expert in .NET, he has a lot of knowledge of SOA techniques and architectures as well as WCF and Microsoft Azure. He also has extensive knowledge of application production frameworks, such as WPF, MVC, and so on.
Antonio has worked with prominent companies as a freelance consultant, speaker, and trainer. These companies include UniCredit Banca, Microsoft Italia, IBM Italia, Ferrari, Tenova Pomini, Cornér Banca, and many others.
As a speaker, he has had the opportunity to contribute to events such as the MCT Summit Europe, WPC Italia, Community Days Milano, Codemotion, and many more from his own user group, DotNet Lombardia.

About the Reviewers

Altaf Hussain is a student pursuing a master's course from Saint Francis Xavier University in Nova Scotia, Canada. Prior to this, he received his undergraduate degree in computer science and engineering from Shahjalal University of Science and Technology in Sylhet, Bangladesh. He is researching in the field of semantic web and cloud services. He is also into developing a framework for context-aware service discovery and selection, providing decision-making support for healthcare scenarios, using parallel computing and semantic technologies.
Altaf is also working as a senior software engineer for Logistics Software Corp., Canada, where he develops distributed web and desktop applications in C#, ASP.NET, and contemporary technologies. Prior to beginning his master's course, he also worked as a full-stack distributed application developer, implementing e-forms, citizen services, and public sector workflow integration. Altaf has also published several research papers in the fields of grid computing, cloud computing, and the Semantic Web.
Thomas Krause is an independent software developer, author, and consultant. He specializes in high-performance solutions, algorithms, and artificial intelligence. Most of the projects he has worked on have leveraged the productivity of the Microsoft .NET framework while still aiming to be highly performa...

Índice