Re: [PATCH] Make strbuf_cmp inline, constify its arguments and optimize it a bit

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miles Bader <miles@...>
Cc: Alex Riesen <raa.lkml@...>, Wincent Colaiuta <win@...>, David Kastrup <dak@...>, Timo Hirvonen <tihirvon@...>, <git@...>, Junio C Hamano <junkio@...>
Date: Monday, October 8, 2007 - 3:23 am

On Mon, Oct 08, 2007 at 01:45:27AM +0000, Miles Bader wrote:

  Won't work because ->len are size_t and return value is int, so on 64
bits platform, this has chances to overflow.

  FWIW I believe we are doing micro-benchs in a function that is used in
2 places in git right now.

--=20
=C2=B7O=C2=B7  Pierre Habouzit
=C2=B7=C2=B7O                                                madcoder@debia=
n.org
OOO                                                http://www.madism.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mini-refactor in rerere.c, Pierre Habouzit, (Mon Sep 24, 5:25 am)
[PATCH 1/2] Add strbuf_cmp., Pierre Habouzit, (Mon Sep 24, 5:25 am)
Re: [PATCH] Make strbuf_cmp inline, constify its arguments a..., Johannes Schindelin, (Sun Oct 7, 12:11 pm)
Re: [PATCH] Make strbuf_cmp inline, constify its arguments a..., Johannes Schindelin, (Sun Oct 7, 2:25 pm)
Re: [PATCH] Make strbuf_cmp inline, constify its arguments a..., Pierre Habouzit, (Mon Oct 8, 3:23 am)
Re: [PATCH 2/2] Make builtin-rerere use of strbuf nicer and ..., Johannes Schindelin, (Mon Sep 24, 6:38 am)