[ https://issues.apache.org/jira/browse/TINKERPOP-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15270886#comment-15270886 ]
Ted Wilmes commented on TINKERPOP-1287: --------------------------------------- As part of starting to look into this, I profiled various stages of a {{g.V().count()}} against a subset of friendster data. Profiles are attached, but I may have found another bit of low hanging fruit. It looks like the {{String.intern()}} calls made during {{StarElement}} and {{StarProperty}} construction are taking a good bit of time. I did a quick test and saw runtime improvements but more thorough testing needs to be done. If that looks good, I may include the removal of interning in my PR for review. I checked to see if I could find any String {{==}} checks that would have been benefitting from the interning but did not see any but very well could have missed them, or another specific reason to intern. I will also check and see what effects this has on memory usage. > StarGraph has an overdose of Stream usage. > ------------------------------------------ > > Key: TINKERPOP-1287 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1287 > Project: TinkerPop > Issue Type: Improvement > Components: hadoop, structure > Affects Versions: 3.2.0-incubating, 3.1.2-incubating > Reporter: Marko A. Rodriguez > Assignee: Ted Wilmes > Fix For: 3.1.3, 3.2.1 > > > {{StarGraph}} is loaded with {{Stream}}-usage. Gutting streams from > TinkerGraph made it much faster. It would be good if we did the same thing > for {{StarGraph}}. > This can go into tp31/ and upmerge to master/. -- This message was sent by Atlassian JIRA (v6.3.4#6332)