• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. Creating Advanced ColdFusion... > Persisting CFCs for Performance

Persisting CFCs for Performance

Every time you invoke a component with cfinvoke, the component is loaded. This can have a performance penalty associated with it, especially if the component is very large or initializes a lot of code when it loads.

You can load components into application scope variables and use them from there. This would cause the component to be loaded and compiled into memory only once, and used directly from memory much more quickly from that point on.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint