From 044acf561ccffd33a413126b350f46c38ae3faa2 Mon Sep 17 00:00:00 2001
From: Guus der Kinderen
Most of the String manipulation operations were quickly tracked down to the core packet classes. More precisely, many user address (JID) objects were being created each time the methods Packet.getFrom() or Packet.getTo() were -being called (Packet class diff). Other expensive operations included JID.toString() and -JID.toBareJID() (JID class diff).
+being called. Other expensive operations included JID.toString() and +JID.toBareJID().After caching the String representation of the JID and caching the "to" and "from" JIDs of packets, the profile picture started to look much better.