[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string_char_to_byte and string_byte_to_char micro-optimisation

From: Robert Pluim
Subject: Re: string_char_to_byte and string_byte_to_char micro-optimisation
Date: Mon, 17 Jun 2019 11:37:15 +0200

>>>>> On Fri, 14 Jun 2019 09:53:50 -0700, Paul Eggert <address@hidden> said:

    Paul> On 6/14/19 5:37 AM, Robert Pluim wrote:
    >> What I donʼt have is any intuition on whether such a change actually
    >> makes any difference in real-world Emacs usage. Can anyone suggest any
    >> benchmarks?

    Paul> My usual benchmark for this sort of thing is 'make compile-always' in
    Paul> the lisp directory.

It doesnʼt make a significant difference, so I donʼt think thereʼs any
point in complicating the code:

With patch, run 1:

real    4m21.097s
user    3m39.020s
sys     0m33.267s

With patch, run 2:

real    4m13.649s
user    3m34.102s
sys     0m31.834s

Without patch, run 1:

real    4m15.264s
user    3m34.305s
sys     0m32.719s

Without patch, run 2:

real    4m18.266s
user    3m36.531s
sys     0m33.315s

reply via email to

[Prev in Thread] Current Thread [Next in Thread]