SharePoint Performance Tuning 3 – Customizations

Posted in: Blog, SharePoint 2010 |

No comments

INTRODUCTION

 

This is a series. The previous article can be found at Series 2.

 

Now we’ve arrived at the customizations topic. Customisations obviously cover a broad range of topics. Therefore, in this particular article I want to discuss only the basic elements and some tips that we can do to increase performance.

 

 

SHAREPOINT CUSTOMISATIONS IN GENERAL

 

Disposing SPWeb and SPSite and other disposable objects

We’ve now read a lot about this. Ensure that you dispose SPWeb and SPSite and other disposable objects properly. In MOSS, the navigation provider for example, needs to be disposed after use. When we don’t dispose these objects properly and only relying on Garbage Collector, we’re exposed to the risk of having memory leaks. The more users access this particular part of the code, the more severe the impact is to your RAM.

 

Use reasonable-sized images and media files

Although when you’re using SharePoint as Intranet it’s usually reasonably quick (because it’s local to the network and using network speed instead of WAN speed), it’s still good to use and upload reasonably-sized images and media files. It will save you a lot of bandwidth.

 

Eg. Why would you upload 3000×2000 image if the general maximum resolution you use in your company is only 1024×768.

 

Also, when you’re customising the UI of your SharePoint site, use GIFs where possible. Gradient colours don’t normally work correctly on GIFs, they have to be JPEGs but JPEGs are generally larger than GIFs.

 

Applying general good coding practice

MS has released a page in MSDN detailing good Sharepoint coding practice. http://msdn.microsoft.com/en-us/library/bb687949(office.12).aspx.

 

There are things like:

– Disposing SPWeb and SPSite;

– Using SPQuery instead of SPList.Items;

– etc

 

Use cached resultsets

You can cache resultsets if you wish. I’ll talk more about this later. Basically, instead of you keep re-iterating list items directly using SPList and SPQuery, you can save those SPListItem collection/resultsets using custom entity wrapper in cache technologies such as .NET Cache, Memcached, etc and only interacting with the cache.

 

Things like iterating all sites and sub-sites can be expensive, too. We can save a lot of database round-trip when we interact with cached resultsets instead of with SPWeb/SPSite directly.

 

 

SHAREPOINT CUSTOMISATIONS FOR INTERNET WEBSITE

 

You can use SharePoint as your internet website, too (ie. MOSS Publishing Site). And normally you will turn on anonymous access. The rule of thumb is, our website has to be quick and should load as fast as possible. The things that affect loading speed are:

– HTML source size;

– Image and media elements size;

– Script size (eg. Javascript that’s referenced by your website);

– Other referenced file size (eg. CSS);

– Length of page scroll. The longer the page is regardless how small/plain it is in size will still take some time to render on user’s browser.

 

With these things in mind, we can configure our MOSS site to be as “small” as possible:

– Hide CORE.JS from anonymous view. CORE.JS is only used to perform SP-related javascripted-tasks such as clicking on Site Actions displaying sub-menu drop-downs, etc. Anonymous user doesn’t need to see this hence can be hidden. This will save you several hundred kilobytes!

– Avoid web-parts and use custom controls instead. Web parts spit out nasty and uneccessary HTML code. Not only they’re not XHTML compliant, they’re also adding few KBs to your overall HTML source size. If you have multiple web parts on your page, they can surely affect your overall HTML source size.

– Hide SharePoint-related CSS (such as CORE.CSS). This is used to style the SharePoint-related menus and controls. Anonymous users don’t need to see this either. This can save you several KBs, too.

 

 

CONCLUSION

 

So I hope that this helps. If you come up with other suggestions please let us all know.

 

 

 

Cheers,

Tommy

Written by

A web solution expert who has passion in website technologies. Tommy has been in the web industry for more than 10 years. He started his career as a PHP developer and has now specialized in ASP.NET, SharePoint and MS CRM. During his career he has also been in many roles: system tester, business analyst, deployment and QA manager, team and practice leader and IT manager.

No Comments Yet.

Leave a Reply

You must be logged in to post a comment.

Our Services

We provides you the best Services in our themes.

  • Click on the link below to see a full list of clients which we have developed solutions and provided consultancy for.

    READ MORE

  • We are solution-centered and not application-centered.

    READ MORE

  • Being creative and having fun and yet still delivering a fantastic service is the center of our values.

    READ MORE

  • TFS Consulting Services guarantees delivery that is within budget and deadline or you engage us for free.

    READ MORE

Implementing IT does not have to be difficult.

As long as you have the right methodologies

We have heard a lot of complaints from our clients that IT a lot of the times give them headache. The issues range from over-budget implementation, server is too hard to maintain, application is not user friendly, features not complete and many others. If you have ever experienced similar situations, don’t worry. This is why TFS Consulting Services is here. We exist to help clients implementing a successful IT solution. We have various methodologies which we have proven working in delivering a successful IT implementation. Below is the list of some of our key service offerings:
  • Planning and Methodologies

    Implementing IT solution does not have to be difficult. TFS Consulting Services has a lot of resources on planning and methodologies that will ensure successful delivery of your IT solution. TFS Consulting Services has been around in the web industry for more than 10 years and has experienced all the successes and failures of various type of IT deployment.

    read more

  • Technical Resource

    Do you need a technical resource? TFS Consulting Services can also provide you with technical resource for developing ASP.NET (C# and VB.NET), SharePoint (2003, 2007, 2010, 2013) and MS CRM applications. Our resource is an Microsoft Certified Personnel (MVP) and Microsoft Certified Technology Specialist (MCTS) in all ASP.NET, SharePoint and CRM.

    read more

  • IT Consulting & Advice

    Make sure your IT implementation is robust and scalable. TFS Consulting Services can provide consulting and advice on industry’s best practice on various web-related areas such as website security, design and usability, application-specific (such as SharePoint)’s best practice, Search Engine Optimisation (SEO), coding standards and many others.

    read more

  • Solution Development

    Finally TFS Consulting Services provides you with solution development service. We mainly work with Microsoft technologies (ie. .NET and SQL Server), however we are also capable of developing with PHP and MySQL. If you ever need any business process automation, integration and solution development work,  we are the trusted expert you should go to.

    read more

For more detailed service offerings please visit our Solutions page.

Testimonials

  • I’m happy to recommend Tommy as a knowledgeable and diligent developer.

    Mike Stringfellow, Vivid Group
  • Tommy has a lot of great ideas that can be delivered into great products. It’s a pleasure working with him because he has a broad knowledge about available technologies out there and he knows what’s best for the client’s needs. He just knows how to work effectively and efficiently.

    Teddy Segoro, Student Edge
  • I’ve worked with Tommy over the past 6 months and have found his approach to development (especially SharePoint) absolutely outstanding. Tommy goes beyond the boundries of typical software development with his ability understand what a client requires and then build it into fully fledged software solution. Coupled with his professional “Best Practice” approach, you get Continue Reading

    Michael Bonham, DSC-IT

Contact us

Tommy Segoro
tommy@tfsconsulting.com.au
+61 404 457 754

   

© TFS Consulting Services 2024. All rights reserved.

www.incorporator.com.au