Ralf Thielow writes:
> On Tue, Jul 31, 2012 at 7:52 PM, Junio C Hamano wrote:
>> + /* Avoid iconv_open()/iconv_close() if there is nothing to convert */
>> + for (i = 0; i < argc; i++) {
>> + if (has_utf8(argv[i], (size_t)-1, NULL))
>> + break;
>>
On Tue, Jul 31, 2012 at 7:52 PM, Junio C Hamano wrote:
> + /* Avoid iconv_open()/iconv_close() if there is nothing to convert */
> + for (i = 0; i < argc; i++) {
> + if (has_utf8(argv[i], (size_t)-1, NULL))
> + break;
> + }
> + if (i < ar
Junio C Hamano writes:
> In practice, the majority of paths do not have any utf8 character
> that needs the canonicalization. Lazily call iconv_open() and
> iconv_close() to avoid unnecessary overhead.
>
> Signed-off-by: Junio C Hamano
> ---
>
> * This is not even compile tested, so it needs t
In practice, the majority of paths do not have any utf8 character
that needs the canonicalization. Lazily call iconv_open() and
iconv_close() to avoid unnecessary overhead.
Signed-off-by: Junio C Hamano
---
* This is not even compile tested, so it needs testing and
benchmarking, as I do not
4 matches
Mail list logo