Commit Graph

73 Commits

Author SHA1 Message Date
Bruce Allen 21e1990508 Made the caching of md5 info for source files a configuration option in
config.xml.  Use the boolean tag <cache_md5_info> to enable it.
This prevents the work generation library from having to go back and
continuously regenerate the md5 sums of your input data files.  Note
that reading these from disk can be expensive if you have many such files
that are large and that you re-use. See check-in notes from 30/31 Dec 2004
for some details.

svn path=/trunk/boinc/; revision=5281
2005-02-02 21:57:11 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
David Anderson 205d90a11d *** empty log message ***
svn path=/trunk/boinc/; revision=5040
2005-01-09 08:44:41 +00:00
David Anderson 4e294d1e5a *** empty log message ***
svn path=/trunk/boinc/; revision=5030
2005-01-08 07:44:22 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 66950e2822 replace bad filename hashing function
svn path=/trunk/boinc/; revision=4975
2005-01-02 07:44:40 +00:00
Bruce Allen 5ce5d79c0f Some improvements on the md5-info caching. If the 'data' file is
more recent than the 'md5info', then ignore md5info.  If md5info
has *exactly* the right format (no extra or missing characters) then
remove it in this case (only).  Don't write an md5info file if
another file is found with the same name.  Thus if someone has two
data files called X and X.md5, unless X.md5 has the exact correct
syntax for an md5-info cache file, it won't be removed or used.
Still disabled by default.  Use -DBOINC_CACHE_MD5 to enable it.

svn path=/trunk/boinc/; revision=4973
2004-12-31 15:39:05 +00:00
Bruce Allen e009537167 When creating large numbers of WU which have large input files,
the cost of computing the md5 sums becomes expensive.  Inserted
a simple caching mechanism into the utility function
process_wu_template().  For a given filename FILENAME, this looks
for a file called FILENAME.md5, which contains the md5sum and
length.  If the file exists, these values are used.  If not, such
a file is created.  Since (I think) David is planning to have a
database for files, this mechanism will eventually be obsolete.
Right now it disabled by default.  Use -DBOINC_CACHE_MD5 to
enable it.

svn path=/trunk/boinc/; revision=4965
2004-12-30 04:16:00 +00:00
David Anderson 072d84e238 *** empty log message ***
svn path=/trunk/boinc/; revision=4937
2004-12-26 02:55:31 +00:00
Bruce Allen a24afe2b67 Moved RCSID strings to the end of all .c, .C and .cpp files as per
David's request.

svn path=/trunk/boinc/; revision=4787
2004-12-08 00:40:19 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson 319328e169 *** empty log message ***
svn path=/trunk/boinc/; revision=4620
2004-11-22 19:17:13 +00:00
Bruce Allen 45525eade1 - Added static volatile const char *BOINCrcsid="$Id$"; string to
the top of all .C files.  This means that 'string' or 'ident'
run on an executable will tell you the exact file versions used
in building it, since CVS replaces $Id$ with a complete version ID
string.  Declaration is volatile so that the compiler won't remove
it even under agressive optimizations.

svn path=/trunk/boinc/; revision=4610
2004-11-20 07:32:32 +00:00
David Anderson 6e94de0a6c *** empty log message ***
svn path=/trunk/boinc/; revision=4240
2004-09-24 21:28:12 +00:00
Lana Alber 154b132c24 *** empty log message ***
svn path=/trunk/boinc/; revision=4211
2004-09-20 23:03:47 +00:00
David Anderson 156930d204 *** empty log message ***
svn path=/trunk/boinc/; revision=4003
2004-08-06 11:42:41 +00:00
Karl Chen 0423d6c4d3 *** empty log message ***
svn path=/trunk/boinc/; revision=3947
2004-07-23 20:48:49 +00:00
David Anderson 11fda1b929 *** empty log message ***
svn path=/trunk/boinc/; revision=3923
2004-07-21 21:50:25 +00:00
Karl Chen afd778de8a *** empty log message ***
svn path=/trunk/boinc/; revision=3863
2004-07-13 13:54:09 +00:00
Jeff Cobb 07870d11d5 *** empty log message ***
svn path=/trunk/boinc/; revision=3838
2004-07-10 00:12:06 +00:00
David Anderson 1f85b52a12 *** empty log message ***
svn path=/trunk/boinc/; revision=3754
2004-07-02 19:45:33 +00:00
David Anderson e0ddccfb44 *** empty log message ***
svn path=/trunk/boinc/; revision=3753
2004-07-02 19:17:53 +00:00
Rom Walton 9d1c3f1a55 Client spamming server hotfix
svn path=/trunk/boinc/; revision=3750
2004-07-02 17:53:31 +00:00
David Anderson d2f8addc5a *** empty log message ***
svn path=/trunk/boinc/; revision=3377
2004-05-13 18:18:22 +00:00
David Anderson 9c8fb41c4d *** empty log message ***
svn path=/trunk/boinc/; revision=3341
2004-05-05 17:48:39 +00:00
David Anderson 7e749941e5 *** empty log message ***
svn path=/trunk/boinc/; revision=3310
2004-04-30 23:18:56 +00:00
David Anderson ad6f5ae47f *** empty log message ***
svn path=/trunk/boinc/; revision=3260
2004-04-14 18:46:33 +00:00
David Anderson 4639df4318 *** empty log message ***
svn path=/trunk/boinc/; revision=3258
2004-04-13 23:55:05 +00:00
David Anderson 6d44e9ccc1 *** empty log message ***
svn path=/trunk/boinc/; revision=2844
2004-01-04 06:48:40 +00:00
David Anderson 8bb76936a1 *** empty log message ***
svn path=/trunk/boinc/; revision=2753
2003-12-07 18:58:08 +00:00
David Anderson 032644aaaf *** empty log message ***
svn path=/trunk/boinc/; revision=2659
2003-11-11 20:49:07 +00:00
David Anderson fa8713feb4 don't retry if file not found
svn path=/trunk/boinc/; revision=2380
2003-09-30 18:09:58 +00:00
Eric J. Korpela e6a02ad49b Added const qualifiers to create_work and process_result_template_upload_only
prototypes.

svn path=/trunk/boinc/; revision=2332
2003-09-16 21:50:03 +00:00
David Anderson 0819db8266 generalize DB interface
svn path=/trunk/boinc/; revision=2267
2003-09-05 21:26:21 +00:00
Karl Chen 8277f2ec44 .
svn path=/trunk/boinc/; revision=2224
2003-09-03 05:42:33 +00:00
Karl Chen a1f76ca6ff *** empty log message ***
svn path=/trunk/boinc/; revision=2140
2003-08-18 23:19:01 +00:00
Karl Chen d64e897345 *** empty log message ***
svn path=/trunk/boinc/; revision=2137
2003-08-18 21:38:48 +00:00
David Anderson c9b46365e7 create results only in transitioner
svn path=/trunk/boinc/; revision=2126
2003-08-15 23:44:28 +00:00
David Anderson 7edf91f52a backend logic
svn path=/trunk/boinc/; revision=2115
2003-08-15 20:35:44 +00:00
Karl Chen 342d2a8d4d change random on result.insert() (for timeout_check & ?)
svn path=/trunk/boinc/; revision=2057
2003-08-11 04:28:23 +00:00
David Anderson 636bb2ce04 license change
svn path=/trunk/boinc/; revision=1629
2003-07-01 20:37:09 +00:00
Karl Chen f84d029b56 warning police / bug fixes
svn path=/trunk/boinc/; revision=1518
2003-06-17 20:18:56 +00:00
David Anderson 2ae654544b DB interface
svn path=/trunk/boinc/; revision=1293
2003-06-04 17:21:26 +00:00
David Anderson 825126c7fa random # seed for results
svn path=/trunk/boinc/; revision=1227
2003-05-20 22:57:28 +00:00
David Anderson dc21c52bdf rename db.h
svn path=/trunk/boinc/; revision=1137
2003-04-07 19:06:00 +00:00
David Anderson 535a6a6d38 DB interface name change
svn path=/trunk/boinc/; revision=1135
2003-04-07 17:11:57 +00:00
David Anderson 8a3e89f698 random send order
svn path=/trunk/boinc/; revision=1121
2003-04-01 03:28:37 +00:00
David Anderson 46f84c5bbf file deletion and state
svn path=/trunk/boinc/; revision=823
2003-01-23 08:07:48 +00:00
David Anderson bdf2aec74b work creation bugs
svn path=/trunk/boinc/; revision=812
2003-01-15 23:54:24 +00:00
David Anderson 12dc09d651 DB code reorganization
svn path=/trunk/boinc/; revision=806
2003-01-09 07:24:27 +00:00