Why "2 languages"? QMap analog from STL doesn't seems to be dramatically faster and this structure wouldn't be potential bottleneck, in my opinion... I don't quite understand you.