all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Lazy printing in tabulated-list-mode
Date: Mon, 4 May 2015 09:21:37 +0100	[thread overview]
Message-ID: <CAAdUY-JTrz1Cn0jXP5sZ0HR51WwS9oabChaq78DU5nf1c4YQVg@mail.gmail.com> (raw)
In-Reply-To: <jwvegmx6vsj.fsf-monnier+emacs@gnu.org>

Firstly, I don't really plan on implementing this lazy-printing
anymore, I'm just trying to optimize the printing a bit now.

Secondly, how do you see the running time on the profiler? I don't
know why it would report 1.3s, given that if I just evaluate
(benchmark-run 10 (tabulated-list-print)) I get a result between 6 to
10 seconds total (depending on whether package-hiding is on or off),
which means at least 0.6 seconds per run (of course).
Maybe the report I sent you was accidentally gathered on a small
package-menu (with only Gelpa configured).

0.6s per print is less than the "couple of seconds" I reported
earlier, because that was without byte-compiling. Still, I think it's
something we can optimize because the benchmark reports 67% of the
time was spent garbage collecting.



2015-05-04 1:19 GMT+01:00 Stefan Monnier <monnier@iro.umontreal.ca>:
>> Yep, that's what I was doing (if you consider 7 ~ 10).
>> Here's the command I was running under M-:
>
>> (progn (profiler-start 'cpu)
>> (tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)
>> (profiler-report) (profiler-stop))
>
> Hmm... but the numbers I saw seemed to indicate a running time of 1.3s,
> so that would mean you saw a running time of of 0.2s per call to
> tabulated-list-print which seems not to justify the addition
> of laziness.
>
>
>         Stefan



  reply	other threads:[~2015-05-04  8:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 16:11 Lazy printing in tabulated-list-mode Artur Malabarba
2015-04-30 16:13 ` Artur Malabarba
2015-05-01 13:43 ` Stefan Monnier
2015-05-01 14:03   ` Artur Malabarba
2015-05-01 17:27     ` Stefan Monnier
2015-05-01 18:11       ` Artur Malabarba
2015-05-01 18:12         ` Artur Malabarba
2015-05-01 18:31           ` Artur Malabarba
2015-05-01 20:46         ` Stefan Monnier
2015-05-02  9:38           ` Artur Malabarba
2015-05-03 16:21             ` Stefan Monnier
2015-05-03 17:02               ` Artur Malabarba
2015-05-04  0:19                 ` Stefan Monnier
2015-05-04  8:21                   ` Artur Malabarba [this message]
2015-05-04 10:46                     ` Artur Malabarba
2015-05-04 12:38                     ` Stefan Monnier

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=CAAdUY-JTrz1Cn0jXP5sZ0HR51WwS9oabChaq78DU5nf1c4YQVg@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.