-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-154: Replaced the lists with sets for the xpath computations. #155
Conversation
@svenefftinge, can you please look into the changes? Thanks! |
@@ -375,13 +375,13 @@ class XpathResolver { | |||
} | |||
return Types.nodeSet(nodes) | |||
} | |||
val result = newArrayList() | |||
val result = newHashSet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use a linked hash set to preserve the order
@huyuwen were you able to test the change against your models? |
As a quick solution for a performance issue when resolving complex long paths. Closes: #154. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
I have replaced the |
Not yet, I will do it ASAP. Sorry for delay.
Akos Kitta <notifications@github.com> 于2018年11月20日周二 上午10:46写道:
… I have replaced the HashSet with a LinkedHashSet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#155 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxaKWJOMHdfsiq406neSW861VZLW-omks5uw8-BgaJpZM4Ynkep>
.
|
I am merging this now. |
I just test locally with our own data. The solution works fine. Really thanks. |
As a quick solution for a performance issue when resolving complex
long paths.
Closes: #154.