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:

@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)
For each directory it stors:
@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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.