copy nsec of mtime in CopyStat #377

Open
opened 2026-01-29 20:42:58 +00:00 by claunia · 0 comments
Owner

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.

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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#377