Yate Community Forum

General Category => Yate based projects => Topic started by: feredi on March 13, 2015, 08:30:08 AM

Title: Best practice of key-value pair in Yate's source code (C++)
Post by: feredi on March 13, 2015, 08:30:08 AM
Hi all,

Could anybody let me know what's the best practice of using a key-value pair of objects in Yate's source code? I am already aware of TokenDict but it's not looking optimized when performance matters because I need to iterate through all objects in order to find the value of a pair when I have the key. I am specifically looking for an equivalent to Dictionary class in C# so that it must be following Yate's coding style as well. Does yatelib have any equivalent or should I consider using STL's unordered_map or similar? I'm waiting to hear your suggestions but please consider performance and memory usage which are highly important in my scenario.