Linear search in language pack export: diverged_messages

Bug #393765 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Jeroen T. Vermeulen

Bug Description

During exports, POFile._getMessages keeps track of all diverged messages for the given POFile. The list is searched for every shared message that comes along.

That could become costly in the case of large templates, or ones with a long history of diverged messages. For those, a set would be better. (With small numbers a list is going to be faster, but that's more of an internal optimization issue for the set class).

Changed in rosetta:
importance: Undecided → Low
status: New → Triaged
Changed in rosetta:
milestone: none → 2.2.7
tags: added: cleanup
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Fixed in devel 8775

Changed in rosetta:
status: Triaged → Fix Committed
Changed in rosetta:
assignee: nobody → Jeroen T. Vermeulen (jtv)
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.