Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Doughboy

Archived file format musings

This topic is 5382 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, I was wondering if it is really more efficient to store a list of directories with parent directories and a list of files with associated directories, or if it would be easier to just store the complete directory path and file name for each file. I think it would be a lot quicker in a hash_map to store the whole directory path and file name, instead of having to iterate down through every single directory to figure out if it''s even there or not. Am I wrong? If so, why? Thanks

Share this post


Link to post
Share on other sites
Advertisement
The best way is to test.

But the single hashmap is probable the way to go.

Make sure you test it with a few thousand filenames, as thats about the max you can expect it to get hit by for almost any game these days.

Share this post


Link to post
Share on other sites

  • 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!