Hello all,
I have files of the following formats:
------------------------
Name
Company
day
month
year
job_name time max min flag1 flag2 flag3 flag4 job_name
job_name time max min flag1 flag2 flag3 flag4 job_name
job_name time max min flag1 flag2 flag3 flag4 job_name
------------------------------
Explanation of file format:
---------------------------
flag4 determines how many job the current task depends on.
that is for:
a 12 123 145 0 1 2 3 c v b
^
We know that job a depends on three tasks that are: c, v, and b
if we have
b 13 113 125 0 1 2 0
^
then this job does not depend on any other job.
-----------------------------
My question:
------------
I have a dynamic structure to hold these info.
It is very important for me to read this file and store the
info in the structure as fast as possible. I have a front end
graphical interface for this and I need to know how reading/storing
in structure can be done very fast so that I can save waiting-time
for the user when having a file containing a lot of job entries.
So for me the main issue is speed (both reading from the file and
writting to the structure).
Any pointers, suggestions/hints are most appreciated.
Thank you.
-Ibrahim