×

Method and apparatus for the naming of database component files to avoid duplication of files

  • US 5,202,982 A
  • Filed: 03/27/1990
  • Issued: 04/13/1993
  • Est. Priority Date: 03/27/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system comprising a CPU, input/output means and memory containing a file system, said file system comprising at least one source file comprising text, a process for generating a database comprising at least one database component file derived from the source files such that one database component file is generated for each unique source file regardless of the number of copies of the source file occurring in a file system, said process comprising the steps of:

  • generating a unique name for the database component file, said name generated by concatenating the source file name with a hash value computed according to the contents of the source file, whereby if the contents of the source file changes, the hash value changes and a different database component file name is generated;

    searching the file system for a database component file having the same name as the generated database component file name;

    if a database component file having the same name as the generated database component file does not exist in the file system, generating a database component file for the source file comprising a listing of symbols and line numbers in the source file where the symbol occurs;

    whereby if a database file having the same name as the generated database file exists, a database component file is not generated thereby eliminating the duplication of database component files and the system usage required to write the duplicate file.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×