mirror of
https://github.com/google/brotli.git
synced 2026-09-24 15:46:13 +00:00
copy nsec of mtime in CopyStat #380
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JackJey on GitHub (Mar 8, 2021).
when using brotli command in Makefile, it doesn't build incrementally but always re-compress full files again.
this is caused by compare time difference includes nsec of mtime, current brotli cli implementation doesn't copy nsec of mtime.
https://github.com/google/brotli/blob/master/c/tools/brotli.c#L661-L662
It's welcome to include nsec of mtime when copy file stat will solve incremental build by Make. it always compress when files are updated.
@eustas commented on GitHub (Mar 24, 2021):
Hmm. Let's take a look how this is done in other compressors, e.g. zlib...
@pirxpilot commented on GitHub (May 1, 2022):
If you are here looking for help with your Makefiles this seems to do the trick:
touchwill update the timestamp from a source file and that will stopmakefrom trying to re-brotlify the same file over and over againAnd yeah - some other compressors have the same problem:
@eustas commented on GitHub (May 1, 2022):
Will take a look soon. Thanks for the heads-up.
@eustas commented on GitHub (Jan 3, 2023):
Should be somewhat addressed with #992