Google Gmail blog - News, Tips and Tricks from Google"s Gmail Team

A need for speed: the path to a faster loading sequence

Tuesday, May 13, 2008 9:48 AM



Great performance has always been an obsession at Google and it's something that we think about and work on everyday. We want Gmail to be really fast, and we keep working on ways to make it faster. Gmail's architecture eliminates many of the delays in reading mail by employing techniques like prefetching, but recently we decided to take a close look at some other key parts of Gmail to see if we could speed things up.

One of the areas we worked on was the initial loading sequence: everything that happens behind the scenes between the time you press the "Sign in" button on the login page and the moment you land in your inbox. While the improvements we made won't resolve every "This is taking longer than usual..." message you might see when loading Gmail over a slow connection, we've seen a real reduction (up to 20%) in overall load time compared to when we started.

First, we listed every transaction between the web browser and Google's servers, starting with the moment the "Sign in" button is pressed. To do this, we used a lot of different web development tools, like Httpwatch, WireShark, and Fiddler, plus our own performance measuring systems. These tools all have useful features, although some are limited to working only with certain browsers. The Httpwatch plug-in for Internet Explorer was one that proved easy to use and provided us with most of the information we needed. It really helps that we can capture and save browser traces with it too.

We spent hours poring over these traces to see exactly what was happening between the browser and Gmail during the sign-in sequence, and we found that there were between fourteen and twenty-four HTTP requests required to load an inbox and display it. To put these numbers in perspective, a popular network news site's home page required about a 180 requests to fully load when I checked it yesterday. But when we examined our requests, we realized that we could do better. We decided to attack the problem from several directions at once: reduce the number of overall requests, make more of the requests cacheable by the browser, and reduce the overhead of each request.

We made good progress on every front. We reduced the weight of each request itself by eliminating or narrowing the scope of some of our cookies. We made sure that all our images were cacheable by the browser, and we consolidated small icon images into single meta-images, a technique known as spriting. We combined several requests into a single combined request and response. The result is that it now takes as few as four requests from the click of the "Sign in" button to the display of your inbox.

We hope that some of you have felt the change, but performance improvements often go unnoticed, and that's okay. We'll keep working to make Gmail faster -- there's a lot we're doing right now -- and we'll give periodic updates as we get improvements out. (And hopefully you'll notice some of them too.)

How to find any email with Gmail search

Tuesday, May 06, 2008 8:28 AM



The sight of someone scrolling through hundreds of email messages trying to find a specific one is like fingers on a chalkboard for me. With a few tricks, you can use Gmail to find the exact message you're looking for, without all the scrolling.

If you don't get a ton of mail, just typing in the words you're looking for usually does the trick. I can just type lisa in the search box and get all of the messages from my friend Lisa, southwest to bring up my ticket confirmations, or "bank statement" to help get my finances in order.

But the real power of Gmail search lies in search operators -- words that help modify your queries. Search operators work pretty much the same way within Gmail as they do for Google. So, if I want the email Lisa sent me with her flight information so I know when to pick her up at the airport, I type from:lisa SFO. Likewise:
  • A link from my co-worker Michael: from:michael http
  • A photo from my mom: from:mom has:attachment
  • That last chat I had with one of the Gmail product managers: keith is:chat
  • All messages from ebay that aren't outbid notices: ebay -outbid (the hyphen tells Gmail to return all of the messages that don't contain the word that follows it)
  • The messages in my inbox sent directly to me that I haven't read yet: to:me is:unread in:inbox
You can limit the scope of your search to a particular subject (subject:) or label (label:) as well. And you can get pretty fancy. Recently, I was trying to remember the date of my friend's April birthday. I always send her a birthday email, so I searched to:maya (birthday OR bday) after:2007/4/1 before:2007/5/1. It's the 19th.



If remembering operators isn't really your thing, that's ok. There's a "Show search options" link to the right of the search bar at the top of your inbox.



Clicking that provides you with text fields you can fill in to get the precision of advanced search. Start there, but after a while you'll probably find that using operators is a lot faster.

Tip: Edit contacts right from your chat list

Wednesday, April 30, 2008 10:15 AM



When I add a new friend to Gmail chat, sometimes my friend's email address is added as their contact name, such as hikingfan@gmail.com. I personally like to have the name of all my chat friends in my chat list so I don't get too confused as to who's who. To change this, I used to go into contacts, select the contact profile, add the name of my friend, and then save it.

But now with the new version of Gmail (launched for Firefox 2 and IE7) you can make edits to Gmail contacts directly from the chat list. I find it to be a great time saver. All you have to do is hover your mouse over one of your contacts to prompt a pop-up with contact details. If you just click on the contact name, it will automatically become an editable field. Simply type in the desired name and hit "enter." Your changes will save the name in your chat list as well as in your contacts.

Calendar Sync updated

Tuesday, April 22, 2008 1:55 PM



Thanks for all the feedback you have sent us about Google Calendar Sync. We're rolling out an update that should make it a lot more useful.

Previously, your Google Calendar email address needed to be the organizer or an attendee of your Microsoft Outlook events for the Outlook events to sync to your Google Calendar. Now, when you choose to do a 2-way sync or a 1-way sync from Outlook calendar to Google Calendar, all of your Outlook events will be synced to your Google Calendar.

If you haven't been auto-updated to Google Calendar Sync 0.9.3.2 and you don't want to wait for the update, you can download it here.

9 reasons to archive

Friday, April 18, 2008 9:55 AM



We hear reports that many users don't archive their email. If you don't regularly click on the "archive" button or never even thought about it, here are some reasons you might want to get in the habit. Archiving just means moving mail out of your inbox and storing it for safekeeping. Your messages will be waiting for you when you click All Mail or search for them.

9. Phone numbers and addresses
You never know when you'll need a phone number someone emailed you or an address that was in a signature.

8. Procrastination
Sometimes you want to get a message out of your inbox, but you don't want to deal with organization, and you don't want to trash it.

7. Posterity

Just because you’re not famous now doesn’t mean that in forty years (or fifteen minutes) you won’t want to write your memoir.

6. Winning arguments
“But on May 5, 2005 at 8:43pm EDT you said….”

5. Mailing lists
Do you really need to know what Clintobamccain is doing every day? Auto-archive* their messages until you want to donate again.

4. Birthdays

Search for “grandma birthday” and voila, find the message you sent her last April. Aren't you glad you archived instead of deleted?

3. That guy
Remember that guy you thought you’d never need to get in touch with ever again?

2. Because you can
May as well use the free storage space. Plus, clean inbox = clean mind.

1. Fate-tempting is bad. You just never know
Thirty-one days after you send that message to the Trash and it gets permanently deleted, you're going to need it. Don't tempt the fates.

*To auto-archive, create a filter with the action "Skip the Inbox (Archive it)."

We're hiring

Tuesday, April 08, 2008 1:35 PM



Despite our best efforts, Gmail doesn't yet build itself. So we're looking for good people to keep making it better and better. It's fun and rewarding to work on a product that you, your friends, other people you know (and tens of millions of people someone else knows) use all the time. And if that's something you want to do, now you can learn more about what goes on behind the scenes and apply on our new hiring page.



It's hard to do on a static web page, but we wanted to give you a sense of what it's like to work on the team. Gmail was one of Google's first experimental forays outside of search, so boundary-pushing is part of our nature. We've developed new storage systems (Google never stored large amounts of user data before), new anti-spam systems (using machine learning technologies developed for search), and a new fast, modular, reusable Javascript architecture (Google never ran an AJAX app of this scale before). We try to push product boundaries, too, with lots of storage, integrated chat, and free IMAP -- stuff that just makes things better for users, even if it means an untraditional approach to business. And one of the best parts is that when you go out, people you actually know say, "Hey, I used [that thing you built]. It's cool." (And then they ask you why Gmail doesn't have folders.)

Much more is in the works, and we're looking for help, so check out our jobs page and send in your resume.

Giving group chat a go

Monday, April 07, 2008 10:48 AM



A friend of mine recently told me that she used group chat in Gmail for the first time the other day. She was talking to two coworkers about a new project and essentially serving as a go-between. Her solution: make it one conversation.

When she told me about this, I couldn't believe this was the first time she used group chat, which we launched in November. I've used group chat a ton, and find it especially useful for coordinating social plans with friends. I try not to do as much back-and-forth emailing to work out plans anymore. I just invite my friends to a group chat and iron out details -- it's much faster.

So in case you haven't seen it yet, you can add a person to any Gmail chat by clicking "Options" in the chat window and then "Group chat." Then start typing the person's name or email, and you'll get contacts auto-complete just like when you compose messages.

Tips for importing old email to Gmail

Friday, March 28, 2008 3:23 PM



When I switched to Gmail more than a year ago, I still had a significant amount of old email stored with my old address. Because I keep messages for a long time and like to frequently search them, I wanted to move my old email to Gmail so it would all be in one place and I could access it on any device, including my mobile phone.

In the end, the move went smoothly, but I picked up a couple of tips along the way that I thought were worth sharing.

Setup
First, you need to tell Gmail how to retrieve your mail from old accounts using POP. Go to Settings > Accounts > Get mail from other accounts > Add another mail account. A new window will pop-up asking you for the email address you're going to import mail from. Fill this in and click on "Next Step."

I found it useful to label incoming messages with "Imported" (use any thoughtful label you can think of), so I could easily identify imported mail later on.




Then, validate with "Add Account" and finally, select "Yes, I want to be able to send mail as yourname@gmail.com." I'm a big fan of using the "from:me" search in Gmail that lets me look for email I sent using any name or address by simply searching "from:me." I wanted to make sure I could continue to find everything I’ve sent under all my old addresses and aliases, and this last step makes that work.

Sending mail from your old address
If you would still like to have the option of sending mail from Gmail that appears to recipients as if it were sent from your old email address, you can set up a custom "From:" by going to Settings > Accounts > Send mail as: > Add another email address.

Click on "Next Step" and then "Send Verification." You'll receive an email with instructions on how to validate your old address. Once it's set up, you can select this address in the "From" field when replying or forwarding.

It might take a while for Gmail to fetch everything from your old account, but the end result was definitely worth it for me.

Newest Gmail features now available for Google Apps users

Friday, March 21, 2008 12:00 PM



Since Google's applications are "in the cloud," we can act on feedback and release new features very rapidly. Sometimes, though, we like to listen and learn from users before launching updates to businesses, schools and organizations that use Google Apps.

Gmail's revamped codebase was one such case, and we're happy to mention this update is now rolling out to Google Apps users who haven't already opted in to get the latest improvements. Employees, students and other Google Apps users will soon start seeing useful features like these: And if you want to stay up to date on the latest Google Apps improvements, our new RSS feed can help you learn about changes to Google Apps as they happen. To subscribe to this feed, click this "Add to Google" button:



If you're a Google Apps administrator and you'd rather start getting new features right away instead of waiting, you can change a setting in the control panel to automatically get future features as they're released.

Calendar Sync now available

Thursday, March 06, 2008 8:55 PM



Yesterday, we launched Google Calendar Sync, a tool that lets users sync Google Calendar with Microsoft Outlook calendar. Using it, you can access your Google Calendar information offline, access your Outlook calendar information online from any computer, and sync your Outlook calendars across multiple computers. Check out Shirin's post on the Google Blog for more information.