2 Days for 4 Seconds
It’s been a tough couple of days on the MIGTurbo CRM 2.0 project. I’ve been working on the code to Display and Edit Client Details. It’s nothing spectacularly complex or detailed, of course, but there was a niggling issue that was bugging me.
MIGTurbo 1.8 /1.9 is fast, very fast. So in writing next-generation code to replicate the functionality and speed users are used to, we need to make sure that we can maintain a similar level of user expectation. As with the commitment to maintain the User Experience in terms of user-interface, we also need to make sure users’ expectations of speed is maintained.
Traditionally, when editing a record on a web application, there is the inherent cost of applying the changes to the server, retrieving the latest details and updating the user interface. All quite costly. In the slowest tests performed in the last couple of days, this was taking up to 5 seconds. A lot of debug code, and support resources are involved here and this does not represents a “real-world” scenario, but even 2-3 seconds will give a feeling of “lag”.
Improving the speed of this was very important, and if we could do it using the same foundations we’re implementing for improving extensibility, then all the better. So, armed with acronyms and search terms, I set upon resolving the speed issue and tweaking the code to extract every bit of performance possible. Effectively, this has taken 2 days … to gain 4 seconds of performance. Now, a typical round trip takes less than half a second (in rough tests).
Was it worth it? Of course it was. Those 4 seconds, multipled by all our clients, multiplied by the number of times a user performs that single function and you get a significant time difference that exceeds 2 days. What would have taken a round trip of approximately 30Kb (even using AJAX - albeit ASP.NET AJAX) now takes a round trip of less than 200 bytes in a typical scenario. That’s a lot of bandwidth given back to the network and it all goes to ensuring MIGTurbo 2.0 remains an enterprise class CRM.
Just in time for the live streaming of The Gu’s Keynote at MIX09 and all without a Diet Coke, too.










