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

Optimize index creation time #1240

Merged
merged 18 commits into from
May 24, 2024

Conversation

Ma-cat
Copy link
Contributor

@Ma-cat Ma-cat commented May 23, 2024

What problem does this PR solve?

  • Use loser tree to replace normal heap
  • Optimize io and use mmap to replace fread
  • Reconstruct merge and predic threads using ring queues
  • Reconstruct merge and output threads using output queues
  • Adjust the intermediate file output format and reduce the size of the intermediate file
  • Reconstruct the locks between merge, predic, and output threads to reduce lock granularity

Type of change

  • Refactoring
  • Performance Improvement
  • Test cases

@Ma-cat Ma-cat added the ci PR can be test label May 23, 2024
@yuzhichang yuzhichang merged commit 42be3d7 into infiniflow:main May 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants