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

🔥 Memory Management - phase 2 done #30

Merged
merged 7 commits into from
May 8, 2024
Merged

Conversation

amir-kedis
Copy link
Collaborator

Phase 2 done horray

  • needs further testing
  • implemented buddy system using a complex binary tree of memory block give it a look I wrote recursion like never before reminded me of the days of algo and ds labs

Copy link
Collaborator

@AhmedHamed3699 AhmedHamed3699 left a comment

Choose a reason for hiding this comment

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

Amazing 🔥🔥
just a small refinement:
You can get highest power of 2 by getting (1 << ceil(log2(x)))
I think it will be a bit faster, looks better.
But this is not really a problem, you did a fabulous job

@AhmedHamed3699 AhmedHamed3699 merged commit 2df76f4 into main May 8, 2024
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