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

Re: [PATCH 1/2] Simplify tracing code by removing trace key normalization concept

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 20, 2017, 04:59 UTC
Message-ID
<xmqqvai5lf4a.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqr2stokzd.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
> The thought behind the change flows much better in the above
> explanation than your four-bullet list (which a reader would often
> assume are parallel and orthogonal).  "Remove this, because it is
> not used" is the primary thing for this step, and the fact that the

Make that "because it is not strictly necessary", as that seems to be much closer to what is going on, and I agree that it is a good change to remove such "convenience for callers" feature from codepaths that could be performance critical. The callers can pass the "&default" thing themselves just as easily as they pass NULL and have the library code to do the defaulting, and that will remove the need to incur extra cost for a subroutine call.

Previous: Junio C HamanoNext: gennady.kupava@gmail.com
Message 14 of 20 in “Reduce performance penalty for turned off traces”
  1. Reduce performance penalty for turned off tracesgennady.kupava@gmail.com, Nov 11, 2017
  2. Jeff KingNov 12, 2017
  3. Gennady KupavaNov 12, 2017
  4. Jeff KingNov 17, 2017
  5. Stefan BellerNov 15, 2017
  6. Jeff KingNov 17, 2017
  7. 1/2 Simplify tracing code by removing trace key normalization conceptgennady.kupava@gmail.com, Nov 19, 2017
  8. 2/2 Reduce performance cost of the trace if trace category is disabledgennady.kupava@gmail.com, Nov 19, 2017
  9. Johannes SixtNov 19, 2017
  10. Gennady KupavaNov 19, 2017
  11. Junio C HamanoNov 19, 2017
  12. Gennady KupavaNov 19, 2017
  13. Junio C HamanoNov 20, 2017
  14. Junio C HamanoNov 20, 2017
  15. 1/2 trace: remove trace key normalizationgennady.kupava@gmail.com, Nov 26, 2017
  16. 2/2 trace: improve performance while category is disabledgennady.kupava@gmail.com, Nov 26, 2017
  17. Junio C HamanoNov 27, 2017
  18. Junio C HamanoNov 27, 2017
  19. Junio C HamanoNov 27, 2017
  20. Gennady KupavaNov 27, 2017

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.