I am using google sparse hash for storing resources' ids. http://code.google.com/p/sparsehash/?redir=1 Here is a package name of this library in the Ubuntu repository libsparsehash-dev. -- С уважением, Уваров Михаил. Best regards, Uvarov Michael