Crash means: I get a pop-up saying "Perl Command Line Interperter Has Stopped Working... Windows can check for an online solution... bla bla blah.." and the program freezes. When you close the pop-up the cmd prompt comes back. "How large is the data base"? Good question. The porgram (basically) recursavly tarverces a directory tree. and stores information about each file (and directory).
For each file it stores:
For each directory it stors:@deleted_file ----- bit flag: 1 or 0 @uenc_file_name -- string, just filename.ext @dir_and_file_name- full path to file: like "c:\user\mark\adir\anotherdir\file.ext" @date_time_mod -- 32 bit number (or 64?) @file_size ------ 32 bit number (or 64?) @encpd ------------ bit flag: 1 or 0) @has_iden --------- bit flag: 1 or 0)
@deleted_file[$i] --- bit 1 or 0 uenc_path_file ------ string, Same lenghth as @the_dir @the_dir[$i] -------- String like c:\users\mark\adir\" @first_pointer[$i] -- Porinter to the above list for the location of the first file in this dir @last_pointer[$i] -- Pointer .... of the last file @has_subdir[$i] ---- bit 1 or 0 @has_iden[$i] ------ bit 1 or 0
In this instance, the number of files (entries) in the array is: 1776655 The number of directories is: 2105 So OVER ESTIMATING say 256 bytes per entry. With 1,776,655 is 454,823,680. Then we have 2105 * 256 = 538,880 so that brings us to ~500 Megabyts. Now times 4 because I use 4 different variables to store the database in so GRAND TOTAL IS: 2GB. (Wow, conicedence? Is there a cut-off of 2GB virtual memory with Windows?) As I said, there is 48GB Installed. I don't know how efficent perl is at using memory?
In reply to Re^2: I can crash perl
by mark4
in thread I can crash perl
by mark4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |