[ https://issues.apache.org/jira/browse/UIMA-6211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074782#comment-17074782 ]
Marshall Schor commented on UIMA-6211: -------------------------------------- Although your points are true, my tendency is not to "fix" these kinds of things - because of the balance between a slight risk of breaking something (e.g. things not thought of at the time, like multi-threading, just as an example), and the expected improvement. The exception might be if (and when) this area of code was being more broadly updated - for example, this was the case when moving to version 3 from version 2. > Type.isPrimitive() seems really slow > ------------------------------------ > > Key: UIMA-6211 > URL: https://issues.apache.org/jira/browse/UIMA-6211 > Project: UIMA > Issue Type: Bug > Components: UIMA > Affects Versions: 2.10.4SDK > Reporter: Richard Eckart de Castilho > Priority: Major > Attachments: Screenshot 2020-04-02 at 11.34.01.png, Screenshot > 2020-04-03 at 12.16.12.png > > > It appears as if the {{Type.isPrimitive()}} method would be very slow. Cf. > the number of hits and the time taken in the attached screenshot. > !Screenshot 2020-04-02 at 11.34.01.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)