git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] minor fixups for gs/commit-graph-path-filter

From
Jeff King <peff@peff.net>
Date
Apr 24, 2020, 05:25 UTC
Message-ID
<20200424052508.GC1648190@coredump.intra.peff.net>
In-Reply-To
<20200424010047.GD1949@danh.dev>
On Fri, Apr 24, 2020 at 08:00:47AM +0700, Danh Doan wrote:
Show 6 quoted lines
> On 2020-04-23 16:58:51-0400, Jeff King <peff@peff.net> wrote:
> > These are just a few bits I noticed in the test-tool helper when the
> > topic hit next (my -Wunused-parameter patch complained that we never
> > looked at argc).
> 
> I think I'll add this one to those few bits.

Yeah, they all look sensible (I should have looked for more "No newline" cases.

Show 7 quoted lines
> I've take another look into bloom.h.
> 
> I think we should drop BITS_PER_WORD definition and use CHAR_BIT
> instead. It's a standard definition.
> 
> To me, a WORD is an `int`, at least I was told that when I was still
> in university and study about computer science.

Yes, I agree it would be more clear as just CHAR_BIT if we are using single-char words. But I suspect the code could be looking at the bit patterns using larger word sizes (e.g., all of the ewah code uses 64-bit words). That might be worth exploring.

-Peff
Previous: Danh Doan
Message 11 of 11 in “minor fixups for gs/commit-graph-path-filter”
  1. 0/2 minor fixups for gs/commit-graph-path-filterJeff King, Apr 23, 2020
  2. 1/2 test-bloom: fix some whitespace issuesJeff King, Apr 23, 2020
  3. Taylor BlauApr 23, 2020
  4. Jeff KingApr 23, 2020
  5. 2/2 test-bloom: check that we have expected argumentsJeff King, Apr 23, 2020
  6. Taylor BlauApr 23, 2020
  7. Garima SinghApr 23, 2020
  8. Taylor BlauApr 24, 2020
  9. Junio C HamanoApr 24, 2020
  10. Danh DoanApr 24, 2020
  11. Jeff KingApr 24, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.