2 ms·
user accounts are now lazily loaded, which has made server restarts more than twice as fast. PG: can you please explain more about this? What is lazily loading
by prakash 18y ago
user accounts are now lazily loaded, which has made server restarts more than twice as fast.
PG: can you please explain more about this? What is lazily loading user accounts? and, how are your measuring perf?
- apgwoz 18y agoLazily loaded would refer to the fact that it's only loaded when needed. In other words, when he restarts the server, he doesn't load up any data for the users. Instead he just creates a reference to the filename that contains all the user info and creates a data structure to hold all that info in. Then, when someone attempts to login, he searches through the file and finds the credentials, and if successful pulls all of the users information into memory. 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.