I've been playing inFamous since PSN gave it away for free.  I've been getting the hang of the game but, I've died quite a few times, generally by charging headlong into overwhelming force.  I can usually get a few kills before I'm overwhelmed, I die, and then I rush right back into it.  I'm wondering what happens to that XP that I gained from the kills before I died.  **Does it apply instantly, or only at the end of a misson
?**.

Alternatively, the question could also be phrased "**Is it to my long-term benefit to die many times per mission so that I can grind XP for killing the same creeps over and over when I restart?**"