String width via fontmetrics calculation is very slow if there are arabic or persian letters in text
问题 I have a problem. My application interface works much slower if i use eastern languages there. Especially i felt it in components such as JList, JCombobox, JTable. How i found the performance of FontMetrics.stringWidth method is very slow (500+ times) if in the text at least one letter is arabic or persian. How i know it is commonly used method in various swing components. Is there a way to boost this method performance? Here is the example class which demonstrates the problem: import java