Yesterday

Sorry no post yesterday. I spent most of the day converting my controls over to use our new file-based templates.

Before, we would have controls with hundreds of lines of StringBuilder.Append()'s. Putting together a quick comparison of that vs. reading it in from a file, the file I/O was significantly faster. And, in the previous case, we went ahead and included feature specific template variables (there's that pesky word again; I promise to write about these in detail - currently, the story section of the blogging software is on the brink, but once it's back online I promise) and cache the template with a CacheDependency on the file.

It's turned out to be very slick. True performance from the file I/O and the caching, with the flexibility to manage the controls' UI without having to crack open code and recompile each time.

Pretty amazing.

Filed under:

Comments

No Comments