Welcome, Guest. Please login or register.

Author Topic: Spaghety file format and AsyncIO with small files  (Read 2053 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Spaghety file format and AsyncIO with small files
« on: March 10, 2006, 07:59:51 PM »
I have this multiple linked list or whatever (tree like but not with those rules, just multiple pointers in each node to multiple nodes with multiple pointers...) I'm saving to HD. I decided to save each list to a unique file that is kept open till all nodes on the tree are last updated and saved. Most node are structures whose fields aren't all saved so I have to take off some fields of each one of them before saving. The pointers in each node to others are saved as offsets to where the other node was saved. This results in a great mess specially since there's no prediction possible to when each node will be updated and saved. The list also has no limits on size.

Questions:
1- In this situation, would using AsyncIO still be worth it considering each node's size on average is bellow 0,5K ?
2- Do you guys think it would be worth the hassle putting some code there to only save nodes to HD in bigger clusters of various nodes ? This would take probably some time and delay the whole thing. Besides if power goes down and there's not a UPS being used the file won't be as up to date.

3- I can't remember some parts of the code I coded myself some moths ago and I'm having to read and understand it all again:-o I am just getting mad or it's normall ?   :-D
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Spaghety file format and AsyncIO with small files
« Reply #1 on: March 10, 2006, 09:47:23 PM »
Thanks Thomas. I don't know if I'll have the patience to learn to work with Dos packets but I'll take a look in the DevCD.

P.S.
My code was documented...;)
\\"We made Amiga, they {bleep}ed it up\\"