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

chore: Implement LMOVE over QList #4104

Merged
merged 2 commits into from
Nov 10, 2024
Merged

chore: Implement LMOVE over QList #4104

merged 2 commits into from
Nov 10, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Nov 10, 2024

All tests in list_family_test besides LTrim pass.

@romange romange requested a review from BorysTheDev November 10, 2024 11:04
All tests in list_family_test besides LTrim pass.

Signed-off-by: Roman Gershman <[email protected]>
int pos = (dest_dir == ListDir::LEFT) ? QUICKLIST_HEAD : QUICKLIST_TAIL;
quicklistPush(src_ql, val.data(), val.size(), pos);
} else {
val = srcql_v2->Pop(src_dir == ListDir::LEFT ? QList::HEAD : QList::TAIL);
Copy link
Contributor

@BorysTheDev BorysTheDev Nov 10, 2024

Choose a reason for hiding this comment

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

Could you create a function to make ToPosition(ListDir dir) {return dir == ListDir::LEFT ? QList::HEAD : QList::TAIL}

@romange romange requested a review from BorysTheDev November 10, 2024 11:46
@romange romange enabled auto-merge (squash) November 10, 2024 13:32
@romange romange merged commit f745f31 into main Nov 10, 2024
12 checks passed
@romange romange deleted the QL0 branch November 10, 2024 13:47
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.

2 participants