CF Performance Tuning - PowerPoint PPT Presentation

Loading...

PPT – CF Performance Tuning PowerPoint presentation | free to download - id: 137b42-OGIxN



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

CF Performance Tuning

Description:

Attempt to write optimized code from the beginning ... Backend logic e.g. queries. Caching (cont.) See code example. Database Optimization ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 21
Provided by: mattl3
Learn more at: http://www.cfconf.org
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: CF Performance Tuning


1
CF Performance Tuning
  • Matt Liotta
  • President CEO
  • Montara Software, Inc.

2
Agenda
  • Definitions
  • Silver bullets
  • What not to do
  • How to get started
  • Performance tuning techniques
  • Q A

3
Definitions
  • Best practices
  • Optimization
  • Scalability
  • Overhead

4
Silver Bullets
  • There are no silver bullets!!!

5
What Not To Do
  • Attempt to write optimized code from the
    beginning
  • Write unreadable i.e. not maintainable code that
    seems to offer performance advantages
  • Use techniques that you dont understand

6
How To Get Started
  • Hopefully with a highly structured application
  • Load test your application
  • Find unacceptable bottlenecks
  • Use the following techniques

7
Performance Tuning Techniques
  • Caching
  • Database optimization
  • UI logic changes
  • Batch processing
  • Code optimization
  • Code rewriting

8
Caching
  • Just about any poorly written application can
    performed adequately with a proper caching
    strategy
  • You can cache…
  • Entire pages
  • Parts of pages
  • Backend logic e.g. queries

9
Caching (cont.)
  • See code example

10
Database Optimization
  • Almost all poorly performing web applications are
    a result database interaction
  • Database interaction can be optimized by…
  • Changing when and how often you query
  • Using bind variables
  • Using stored procedures
  • Using joins correctly
  • Using indexes correctly
  • Not following proper database techniques
  • Not using a database at all

11
Database Optimization (cont.)
  • See code example

12
UI Logic Changes
  • Some performance problems cant be fixed with
    code alone because the user interface simply
    requires to much work to serve a request
  • A change in UI logic can…
  • Drastically reduce the amount of work needed to
    serve certain requests
  • Avoid redundant processing

13
UI Logic Changes (cont.)
  • See code example

14
Batch Processing
  • Some web applications do work at request time
    that could have been done ahead of time
  • Batch processing can…
  • Can reduce page execution time by decoupling some
    of the work
  • Allow programmatic control over when certain work
    is done by an application

15
Batch Processing (cont.)
  • See code example

16
Code Optimization
  • Occasionally, the programming logic is simply
    inefficient
  • Code optimization can…
  • Speed up a request
  • Reduce request overhead

17
Code Optimization (cont.)
  • See code example

18
Code Rewriting
  • Rarely, parts of a web application simply cant
    be written well in CFML
  • Rewriting code in another language can…
  • Reduce code complexity
  • Reduce execution time
  • Reduce overhead

19
Code Rewriting (cont.)
  • See code example

20
Q A
  • Matt Liotta
  • Blog http//DevilM.com
  • Email mliotta_at_r337.com
About PowerShow.com