ghenry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Master Monks,
In Catalyst, LDAP User Auto_complete and arrays with grep I mentioned the amount of users in a Directory at around 500,000 - 1,000,000. This is not uncommon and I have seen up to 1.5 - 2 Million.
So my question is, if during an LDAP search for the auto_complete in the above node, the directory returns say 250,000 users that begin with the letter "g", however unlikely, and the usernames are say a max of 6 letters long, is it possible to determine the rough size of the Array the holds these results?
Kind of 6 x 1 byte = 1 username, x 500,000? Plus what ever Net::LDAP uses to store the results?
2-3MB to be safe?
It's just for a rough idea.
Not sure if I am even on the right track.
Many thanks,
Gavin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Way to predict Array Memory Size for returned LDAP Searches?
by g0n (Priest) on Apr 04, 2006 at 10:36 UTC | |
|
Re: Way to predict Array Memory Size for returned LDAP Searches?
by codeacrobat (Chaplain) on Apr 04, 2006 at 10:26 UTC | |
|
Re: Way to predict Array Memory Size for returned LDAP Searches?
by wazoox (Prior) on Apr 04, 2006 at 09:54 UTC | |
by ghenry (Vicar) on Apr 04, 2006 at 10:26 UTC |