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

Re: git-fetching from a big repository is slow

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Dec 16, 2006, 13:32 UTC
Message-ID
<200612161433.00030.robin.rosenberg.lists@dewire.com>
In-Reply-To
<loom.20061215T223909-156@post.gmane.org>
fredag 15 december 2006 22:49 skrev Pazu:
Show 10 quoted lines
> Shawn Pearce <spearce <at> spearce.org> writes:
> > identical class file given the same input.  I've seen times where
> > it doesn't thanks to the automatic serialVersionUID field being
> > somewhat randomly generated.
>
> Probably offline, but… serialVersionUID isn't randomly generated. It's
> calculated using the types of fields in the class, recursively. The actual
> algorithm is quite arbitrary, but not random. The automatically generated
> serialVersionUID should change only if you add/remove class fields (either
> on the class itself, or to the class of nested objects).

Different java compilers (e.g. SUN's javac and Eclipse) generate slipghtly different code for some cases, including somee synthetic member fields. that get involved in the UID calculation. Neither compiler is wrong. The java specifications don't cover all cases.

Previous: Pazu
Message 11 of 11 in “Re: git-fetching from a big repository is slow”
  1. Shawn PearceDec 14, 2006
  2. Geert BoschDec 14, 2006
  3. Johannes SchindelinDec 14, 2006
  4. Shawn PearceDec 14, 2006
  5. Johannes SchindelinDec 15, 2006
  6. Shawn PearceDec 15, 2006
  7. Nicolas PitreDec 15, 2006
  8. Horst H. von BrandDec 14, 2006
  9. Shawn PearceDec 14, 2006
  10. PazuDec 15, 2006
  11. Robin RosenbergDec 16, 2006

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.