Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #85261

Re: position in file when saving

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: position in file when saving
Date 2016-03-30 08:24 +1300
Message-ID <dm033rFr730U1@mid.individual.net> (permalink)
References (18 earlier) <8740de83-050e-4264-abc3-de92ba773518@googlegroups.com> <ndbfc6$o6g$1@dont-email.me> <ndbgpa$su8$1@jstuckle.eternal-september.org> <ndddii$1nn$1@dont-email.me> <nddu6i$sbk$1@jstuckle.eternal-september.org>

Show all headers | View raw


On 03/30/16 02:02, Jerry Stuckle wrote:
> On 3/29/2016 4:18 AM, David Brown wrote:
>>
>> That depends on your definition of "better".  There are certainly build
>> utilities that work by checksums rather than modification times - they
>> will not be fooled by time sync problems.  But they have to read all the
>> files involved for every build - if you have a lot of files, and only a
>> few change, that can mean a lot longer build time.
>>
>
> Reading a file and computing the checksum is not that hard to do, nor is
> it very time consuming - much less than compiling a file, for instance.
>   And the utility has to check the file time also takes time.  And the
> more files you have, the more critical it is to ensure the source files
> are in sync.

In a Linux kernel tree:

Checking dates -
time find . \( -name "*.[coh]" -o -ctime +100 \) | wc -l
    43499

real	0m0.340s

Checking checksums -
time find . -name "*.[cho]" -exec md5sum {} \; | wc -l
    43499

real	1m56.131s

Longer then rebuilding most of the tree...  Considering most development 
builds are for one or two files, longer than the entire 
rebuild/reboot/reload cycle.

-- 
Ian Collins

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

position in file when saving fir <profesor.fir@gmail.com> - 2016-03-24 08:29 -0700
  Re: position in file when saving Barry Schwarz <schwarzb@dqel.com> - 2016-03-24 10:11 -0700
    Re: position in file when saving fir <profesor.fir@gmail.com> - 2016-03-24 10:51 -0700
      Re: position in file when saving Robert Wessel <robertwessel2@yahoo.com> - 2016-03-24 13:07 -0500
        Re: position in file when saving Stephen Sprunk <stephen@sprunk.org> - 2016-03-24 14:22 -0500
          Re: position in file when saving supercat@casperkitty.com - 2016-03-24 12:40 -0700
            Re: position in file when saving Keith Thompson <kst-u@mib.org> - 2016-03-24 12:57 -0700
              Re: position in file when saving supercat@casperkitty.com - 2016-03-24 13:15 -0700
                Re: position in file when saving Keith Thompson <kst-u@mib.org> - 2016-03-24 15:06 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-24 20:29 -0400
                Re: position in file when saving Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-25 01:42 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-24 23:07 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-25 16:21 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 09:00 -0400
                Re: position in file when saving Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-25 11:07 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 09:06 -0400
                Re: position in file when saving Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-25 14:22 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 10:57 -0400
                Re: position in file when saving Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-25 16:31 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 12:36 -0400
                Re: position in file when saving luser droog <luser.droog@gmail.com> - 2016-03-25 09:49 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 13:00 -0400
                Re: position in file when saving Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-25 20:35 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 16:59 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-26 10:46 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-25 20:22 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-26 13:42 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-26 09:17 -0400
                Re: position in file when saving supercat@casperkitty.com - 2016-03-26 07:50 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-26 21:37 -0400
                Re: position in file when saving supercat@casperkitty.com - 2016-03-27 08:14 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-27 12:45 -0400
                Re: position in file when saving supercat@casperkitty.com - 2016-03-27 12:20 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-27 17:07 -0400
                Re: position in file when saving supercat@casperkitty.com - 2016-03-27 14:15 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-27 17:26 -0400
                Re: position in file when saving Ken Brody <kenbrody@spamcop.net> - 2016-03-28 10:36 -0400
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-28 11:01 -0400
                Re: position in file when saving David Brown <david.brown@hesbynett.no> - 2016-03-29 10:18 +0200
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 09:02 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-30 08:24 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 15:57 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-30 09:04 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 16:22 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-31 17:31 +1300
                Re: position in file when saving gazelle@shell.xmission.com (Kenny McCormack) - 2016-03-31 09:55 +0000
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-31 10:01 -0400
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 16:31 -0400
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-30 17:27 -0400
                Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-31 16:19 +1300
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-31 10:06 -0400
                Re: position in file when saving Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-03-29 05:21 -0700
                Re: position in file when saving Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 09:05 -0400
                Re: position in file when saving Ken Brody <kenbrody@spamcop.net> - 2016-03-25 14:33 -0400
                Re: position in file when saving Keith Thompson <kst-u@mib.org> - 2016-03-25 11:38 -0700
                Re: position in file when saving supercat@casperkitty.com - 2016-03-25 14:05 -0700
                Re: position in file when saving Nick Bowler <nbowler@draconx.ca> - 2016-03-28 16:14 +0000
                Re: position in file when saving Tim Rentsch <txr@alumni.caltech.edu> - 2016-03-30 09:31 -0700
          Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-25 15:06 +1300
        Re: position in file when saving Ian Collins <ian-news@hotmail.com> - 2016-03-25 15:00 +1300
  Re: position in file when saving Les Cargill <lcargill99@comcast.com> - 2016-03-24 22:15 -0500

csiph-web