• Advertisement
Sign in to follow this  
  • entries
    46
  • comments
    67
  • views
    45569

Heaps and Lists and Leaks

Sign in to follow this  

172 views

If you ever decide it'd be a good idea to implement your own memory heap system for whatever reason, make sure you do it correctly, which includes combining multiple small neighboring blocks into a single larger block at least occasionally if you allow blocks to be split. Also, while a linked list is a convenient way to store a 'free list', it's going to end up quite slow if there is a single unordered list that you search for every call to 'MyAlloc' and 'MyFree' (especially if you don't combine blocks but do split them).

Reverse engineering is quite eye-opening =-/
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement