Skip to content

TINKERPOP-2056 Use NumberHelper in Compare#949

Merged
asfgit merged 1 commit into
tp32from
TINKERPOP-2056
Oct 5, 2018
Merged

TINKERPOP-2056 Use NumberHelper in Compare#949
asfgit merged 1 commit into
tp32from
TINKERPOP-2056

Conversation

@dkuppitz
Copy link
Copy Markdown
Contributor

@dkuppitz dkuppitz commented Oct 4, 2018

https://issues.apache.org/jira/browse/TINKERPOP-2056

Instead of converting all numbers to BigDecimal, Compare predicates now use NumberHelper for numerical comparisons.

docker/build.sh -t -i -n passed.

VOTE +1

@spmallette
Copy link
Copy Markdown
Contributor

Just pushed a commit 4bdb006 on the release branches to deal with these pesky tests that sometimes fail in travis:

[ERROR]   GremlinGroovyScriptEngineTest.shouldAllowsUseToBeExecutedAfterImport:293 » Runtime
[ERROR]   GremlinGroovyScriptEngineTest.shouldLoadImportsViaDependencyManagerFromDependencyGatheredByUse:279 » Runtime

Obviously not related to this change. Did you happen to do any tests to see what this optimization bought us in terms of performance?

VOTE +1

@dkuppitz
Copy link
Copy Markdown
Contributor Author

dkuppitz commented Oct 5, 2018

From what we've seen in previous tests, it should be marginally faster. I haven't run any new tests as this was more about consistency.

@robertdale
Copy link
Copy Markdown
Member

VOTE +1

@asfgit asfgit merged commit 99d836b into tp32 Oct 5, 2018
@asfgit asfgit deleted the TINKERPOP-2056 branch October 24, 2018 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants