Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    46
  • comments
    67
  • views
    45653

Heaps and Lists and Leaks

Sign in to follow this  
Extrarius

180 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!