Perl-Sensitive Sunglasses | |
PerlMonks |
Way to predict Array Memory Size for returned LDAP Searches?by ghenry (Vicar) |
on Apr 04, 2006 at 08:12 UTC ( [id://541093]=perlquestion: print w/replies, xml ) | Need Help?? |
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,
Walking the road to enlightenment... I found a penguin and a camel on the way..... Fancy a yourname@perl.me.uk? Just ask!!!
Back to
Seekers of Perl Wisdom
|
|