Actually, that "forgetting spells" trick is a rather cheesy way of getting a bunch of XP. Get a bunch of spell scrolls (pickpocket or purchase). Then memorize them, delete them from your spell book, and memorize them again. Since BG2 gives XP for successfully memorizing spells, your XP keeps increasing.
Cheers,
-Sazerac