As far as I can see the "List<SpeechLine> lines" is accessed and lookup in it is performed pretty often based on unique "lineId". Would it be possible to have this list converted to a dictionary and perform lookups based on it? While I haven't done many tests yet I believe it would have a _very_ positive impact on performance when fishing for translated lines. Sure the lineId would duplicate in multiple places (in SpeechLine object and in dictionary) but I believe that's negligible compared to the potential performance improvement.
Comments