Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am developing a client for GoogleTalk server and need to know maximum count of friends Google allows a user to add to his/her friend list.

share|improve this question

migrated from stackoverflow.com Feb 22 '11 at 2:29

This question came from our site for professional and enthusiast programmers.

6  
    
Back in 2010, I remember a friend hit the limit by having the “Add people I communicate with often to my Friends List.” feature enabled. Around 10000 entries the chat feature stopped working and only deleting 90% of the contacts enabled it again. I suspect such limitation would be enforced by the client-IDE though and not the server. –  Hypnos Feb 20 '11 at 8:43

2 Answers 2

If you really need a static maximum number for a list, then i strongly suggest you review your approach. What language are you using? In any modern language, the maximum number of elements in a list/array/whatever is irrelevant.They all provide datatypes for that that are only capped by your RAM memory.

share|improve this answer
    
I don't need that limitation because of programming language restriction. –  mjafari Feb 20 '11 at 13:14

You can find pretty much everything you need to know to build a GTalk client at the GTalk developer's home page. GTalk uses the standard XMPP protocol, with a few extensions for additional features. You shouldn't need to know such limits if they even exist. If they do exist, there is no reason they could not be raised the next day. In general, it's a bad idea to use fixed-constants for buffer sizes, array sizes, etc. There is no reason to not allow the number of contacts to vary dynamically at runtime.

If you are using C++, you can use a vector or list for a list whose size can grow. In Java, you can use a List of which ArrayList and LinkedList are implementations for a dynamically-sized list. In Python, the list type grows dynamically. Pretty much every language has a notion of a dynamic array or a linked list (depending on what kind of access pattern and storage requirements you need). If you use a database of some kind, database cursors can read over arbitrary numbers of rows. Can you explain why you believe that you need to have a predefined fixed number of permitted contacts?

share|improve this answer
    
I don't need that limitation because of programming language restriction. I need to know because the program provides a service that informs customers of a Bank about their accounts. First I try to send IM to costumers without adding them to service "friend list" but Google talk (against Yahoo and other XMPP servers) only delivers IM to friends (probably an anti-spam policy). So Google account of this service must have thousands or millions of friends (i.e. costumers). –  mjafari Feb 20 '11 at 11:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.