all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Cc: 61489@debbugs.gnu.org
Subject: bug#61489: [PATCH 1/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵
Date: Mon, 13 Feb 2023 22:30:27 +0000	[thread overview]
Message-ID: <87wn4lgpvg.fsf@localhost> (raw)
In-Reply-To: <20230213200006.663502-2-Hi-Angel@yandex.ru>

Konstantin Kharlamov <Hi-Angel@yandex.ru> writes:

> While testing this change on Archlinux system with Intel i5-7200U CPU,
> average time of garbage collection gets reduced by ≈25%. While
> monitoring PSS of emacs with and without customizations loaded before
> and after the patch, no statistically significant differences were
> discovered. So overall, this change is a win.

In GNU Emacs 30.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version
 3.24.35, cairo version 1.17.6) of 2023-02-14 built on localhost
Repository revision: 51320630cfbc452326e1d0d7b8a313f682129ec1
Repository branch: kk/bug-61489-increase-block
Windowing system distributor 'The X.Org Foundation', version 11.0.12101006
System Description: Gentoo Linux

Linux localhost 6.1.9-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Mon Feb 13
14:05:49 +03 2023 x86_64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
GenuineIntel GNU/Linux

Running the benchmark from the blog post:
- without the patch: 0.600450
- with the patch:    0.321723 (~50% improvement)

I also changed gc-cons-threshold to 250,000,000 and gc-cons-percentage
to 0.0001. The results are nearly the same.

Running
(1) gc-cons-threshold <- most-positive-fixnum;
(2) org-element-parse-buffer on huge Org file (22Mb)
(3) garbage-collect:
- with the patch:    1.2494823932647705
- without the patch: 1.1721010208129883 (~6% improvement)

Memory consumption nearly unchanged.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





  parent reply	other threads:[~2023-02-13 22:30 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13 20:00 bug#61490: [PATCH 0/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵ Konstantin Kharlamov
2023-02-13 20:00 ` bug#61489: [PATCH 1/1] " Konstantin Kharlamov
     [not found]   ` <handler.61489.B.167631844622733.ack@debbugs.gnu.org>
2023-02-13 20:05     ` bug#61489: Acknowledgement ([PATCH 1/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵) Konstantin Kharlamov
2023-02-14  3:29       ` Eli Zaretskii
2023-02-14  6:45         ` Konstantin Kharlamov
2023-02-14  6:56           ` Konstantin Kharlamov
2023-02-14  8:20             ` Robert Pluim
2023-02-14  8:22               ` Konstantin Kharlamov
2023-02-14  8:29                 ` Konstantin Kharlamov
2023-02-14 13:26               ` Eli Zaretskii
2023-02-15  7:03                 ` bug#61489: Open a bug report with git-send-email (was: bug#61489: Acknowledgement ([PATCH 1/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵)) Kévin Le Gouguec
2023-02-13 22:30   ` Ihor Radchenko [this message]
2023-02-16 15:07   ` bug#61489: [PATCH v2] Increase BLOCK_ALIGN from 1024 to 32768 Konstantin Kharlamov
2023-02-23 15:30     ` Konstantin Kharlamov
2023-02-23 15:49       ` Robert Pluim
2023-02-23 15:53         ` Konstantin Kharlamov
2023-02-23 15:57           ` bug#61490: " Robert Pluim
2023-02-23 16:05             ` Konstantin Kharlamov
2023-02-23 16:34               ` Robert Pluim
2023-02-23 16:41           ` bug#61489: bug#61490: " Eli Zaretskii
2023-02-24 10:50             ` Robert Pluim
2023-02-27 10:30               ` bug#61490: " Konstantin Kharlamov
2023-02-23 16:40         ` Eli Zaretskii
2023-03-04 11:26     ` Eli Zaretskii
2023-03-04 15:00       ` Eli Zaretskii
2023-03-04 15:33         ` Konstantin Kharlamov
2023-03-04 18:58           ` Konstantin Kharlamov
2023-03-04 19:53             ` Eli Zaretskii
2023-03-04 19:58               ` Konstantin Kharlamov
2023-03-05  5:47                 ` Eli Zaretskii
     [not found] ` <handler.61490.B.167631845222751.ack@debbugs.gnu.org>
2023-02-13 20:05   ` bug#61490: Acknowledgement ([PATCH 0/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵) Konstantin Kharlamov
2023-02-16  4:59 ` bug#61490: [PATCH 0/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵ Richard Stallman
2023-02-16  6:46   ` Konstantin Kharlamov
2023-02-16  9:31   ` Gregory Heytings
2023-02-21  5:22     ` bug#61490: [PATCH 0/1] Increase BLOCK_ALIGN from 2¹⁰to 2¹⁵ Richard Stallman
2023-02-16 15:05 ` bug#61490: [PATCH v2] Increase BLOCK_ALIGN from 1024 to 32768 Konstantin Kharlamov
2023-02-16 15:29   ` Robert Pluim
2023-02-16 16:48     ` Konstantin Kharlamov
2023-02-16 17:00       ` Konstantin Kharlamov
2023-02-16 17:02       ` Robert Pluim
2023-03-03 10:44 ` Konstantin Kharlamov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn4lgpvg.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=61489@debbugs.gnu.org \
    --cc=Hi-Angel@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.