Almost, but it's not only at login that you need user data.
Basically I changed the code that looks up stuff about users (formerly just a hash table in functional position) to call a function that loads a user from disk first if necessary.
how about perf? how are your measuring that - # of connections?
I usually just look at average time for generating the frontpage.
Before this change, he stored the information for all users in memory, even the ones who no longer use the site, as soon as the server restarted.