Home > Back-end > To, the following data format with DELPHI how to parse the database (MDB) has the highest efficiency
To, the following data format with DELPHI how to parse the database (MDB) has the highest efficiency
Time:10-04
Text data format as follows, characteristic value "name:" at the back of the data is not the same, ILINE only need to parse VRTX lines of data in the END, when the data is a common way can (read) in a row, but particularly large amount of data (same format) efficiency is very low, usually about 20 m to 100 m to a file, seek expert advice,
GOCAD PLine 1 The HEADER { Name: bounding_pline_pm - 0920 Color: 0.8 0.8 0.1 1.0Both atoms: off Cn: off Line_visible: on Name_in_model_list: bounding_pline_pm - 0920 } GEOLOGICAL_TYPE boundary ILINE VRTX 1 3274.65185547 3388.31103516 600 VRTX 2 2780.47558594 2596.45825195 600 VRTX 3 2367.03491211 2222.10327148 600 VRTX 4 2253.71923828 2140.22363281 600 VRTX 5 2106.87524414 1845.48815918 600 VRTX 6 2309.38818359 1265.0916748 600 VRTX 7 2309.38818359 1265.0916748 0 VRTX 8 2106.87524414 1845.48815918 0 VRTX 9 2253.71923828 2140.22363281 0 VRTX 10 2367.03491211 2222.10327148 0 VRTX 11, 2780.47558594 2596.45825195 0 VRTX 12 3274.65185547 3388.31103516 0 SEG 1 2 SEG 2, 3, SEG, 3, 4, SEG, 4, 5 SEG 5 6 SEG 6 7 SEG 7 8 SEG 8 and 9 SEG 9 10 SEG 10 11 SEG 11 12 SEG 12 1 END
CodePudding user response:
I don't think the efficiency bottleneck in parsing text files, because for a text file I/O is soon, if the whole program execution think about warehousing slow slow? Such as setting up once every 1000 submitted, instead of a submission
CodePudding user response:
Tested not warehousing also slowly, data parsing takes time too
CodePudding user response:
Text file since the backward sequence before reading, reading and judgment, so better, per line read, actually read at least two times the data
CodePudding user response:
Can use multithreading text data? I haven't done tried it on