Performance Considerations

When implementing subclasses and hooks, performance is a critical factor. Too much code executing within a hook or a subclassed window could easily bring performance down below an unacceptable level. Keep this in the front of your mind when writing the code to handle subclassing and hooks. System-wide hooks have the most potential to degrade performance. I will discuss where these performance bottlenecks can arise as we progress through this book.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.