[Tizen] [GPOS] Avoid O(n^2) behavior in mark-attachment