bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#66816: [PATCH] Delete redundant lambdas around unary functions


From: Stefan Kangas
Subject: bug#66816: [PATCH] Delete redundant lambdas around unary functions
Date: Sun, 29 Oct 2023 06:02:38 -0700

Severity: wishlist

Please see the attached patch.

I've been able to measure around 10% better performance in the few cases
I looked into.  Here's an example:

    (benchmark-run 1000
      (seq-filter (lambda (n) (bufferp n))
                  (number-sequence 0 100000)))
    => (69.007736 333 47.018879999999996)

    (benchmark-run 1000
      (seq-filter #'bufferp
                  (number-sequence 0 100000)))
    => (61.541616 333 47.673137)

Attachment: 0001-Delete-redundant-lambdas-around-unary-functions.patch
Description: Text Data


reply via email to

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