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

[Refactor] optimize the assign and find_or_insert by new algorithm #121

Merged
merged 1 commit into from
May 7, 2023

Conversation

rhdong
Copy link
Member

@rhdong rhdong commented May 6, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented May 6, 2023

int key_pos = -1;
size_t key_idx = t / TILE_SIZE;
int local_size = 0;
const size_t key_idx = t / TILE_SIZE;
Copy link
Collaborator

@jiashuy jiashuy May 6, 2023

Choose a reason for hiding this comment

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

In general case, the KV number in a batch is less than 2^32. If not, there will be too many keys in our table.
So can we use the uint32_t instead of size_t? The same as the variable in the function of find_key_position .

Copy link
Member Author

Choose a reason for hiding this comment

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

Make sense, will do some optimization in a seperate PR.

@rhdong rhdong merged commit 61951be into NVIDIA-Merlin:master May 7, 2023
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