If the lines for transfer security are long, you may want to go through arrivals immigration then departure security, particularly if you hold an EU passport (immigration will be fast). I have done this in the past and plan to do it again when I transit LHR next week. Transfer security lines can be really long compared to departure security.
Justin