Skip to content
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

Implement DstSortedListLinkedImpl for sorted list #378

Merged
merged 34 commits into from
Jan 9, 2020
Merged

Implement DstSortedListLinkedImpl for sorted list #378

merged 34 commits into from
Jan 9, 2020

Conversation

ou-taku14
Copy link
Member

@ou-taku14 ou-taku14 commented Dec 22, 2019

Test environment:

  • Processor: Intel® Core™ i5-7200U
  • Memory:8G
  • Operating system: Windows 10 Pro

The above is the LinkedList implementation of the Dst SortedList. There is the benchmark in my machine.
(Description: My benchmark program is to test a SortedList with a maximum length of 1000000 which value is DstSortedListsImplSimpleBenchmark.lengthInPutList over the average time of 10 tests. You can modify the member variable maxOperationtimes which represents the number of tests for each operation. In the benchmark results, Magnitude represents the maximum length. Total time represents the sum of the nanosecond taken to perform this operation. Average time is the average time for this operation. )

image

tortuo added 2 commits December 22, 2019 12:05
@ou-taku14 ou-taku14 changed the title Extracted SortedList interface [WIP]Extracted SortedList interface Dec 22, 2019
@ou-taku14 ou-taku14 changed the title [WIP]Extracted SortedList interface Extracted SortedList interface Dec 29, 2019
@jovany-wang jovany-wang self-assigned this Dec 30, 2019
@jovany-wang jovany-wang added the enhancement enhancement label Dec 30, 2019
Copy link
Collaborator

@senyer senyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well Done,LGTM

Copy link
Collaborator

@senyer senyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,nice job!

Copy link
Collaborator

@jovany-wang jovany-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's appropriate to add an error code for a DstException.

Because we can have DstOutOfIndexException while DstListOutOfIndexException being not appropriate.

@jovany-wang
Copy link
Collaborator

Could you add the descriptor in this PR?

@ou-taku14

This comment has been minimized.

@ou-taku14
Copy link
Member Author

ou-taku14 commented Jan 7, 2020

Because we can have DstOutOfIndexException while DstListOutOfIndexException being not appropriate.

Like DstKeyDuplicatedException needs to generality. Only the List have the index concept. I think the name DstOutOfIndexException has no problem.

@ou-taku14 ou-taku14 closed this Jan 9, 2020
@ou-taku14 ou-taku14 reopened this Jan 9, 2020
Copy link
Collaborator

@jovany-wang jovany-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A pretty awesome feature!!!

Thanks for your efforts on this.

@jovany-wang jovany-wang changed the title Extracted SortedList interface Implement DstSortedListLinkedImpl for sorted list Jan 9, 2020
@jovany-wang jovany-wang merged commit 24bccbb into distkv-project:master Jan 9, 2020
@ou-taku14 ou-taku14 deleted the dev branch January 10, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement new feature new features perf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants