What factors are responsible for the speed at which sites are indexed in Google?

Some sites get indexed in less than 5 minutes whereas some takes 1-2 days...


Your views on...???