all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Skarda <dan.skarda@gmail.com>
To: emacs-devel@gnu.org
Subject: Speed improvements to ido.el
Date: Tue, 20 Nov 2012 19:25:17 +0100	[thread overview]
Message-ID: <CAAfMPgCNiv=gJXV27F_zpMO+vi6azJZPPEk5yAQQeq8BD4rN7Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

Hello,

I like to use ido mode for everything, including very large lists (like M-x
or info). Unfortunately ido is not suitable for such lists. On my old
notebook, performance is not amazing, so I took the challenge and spend
some time with profiler.

I improved the performance in several steps:

- inlined several functions
- disabled ido-case-fold for some completions (eg commands)
- prunning collections based on character bitmaps
- caching character bitmaps during completion or for same completions
- caching intermediate completion lists when adding new characters

You can view my changes on github:

- https://github.com/orfelyus/ido-speed-hack
- https://github.com/orfelyus/ido-mode-el

- (and optionally) https://github.com/orfelyus/ido-better-flex

ido-speed-hack includes large changes (bitmaps) while ido-mode-el includes
minor changes to ido.el

The changes made huge speed improvements on my notebook and ido does not
feel sluggish even with very large lists.

Could you please test my improvements? I would appreciate any feedback.
Dan

ps: I am not subscribed to the mailing list, please keep me in Cc

[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

             reply	other threads:[~2012-11-20 18:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 18:25 Daniel Skarda [this message]
2012-11-21  3:20 ` Speed improvements to ido.el Leo
2012-11-21  3:37 ` Dmitry Gutov
2012-11-22  9:36   ` Daniel Skarda
2012-11-30 13:42     ` Daniel Skarda
2012-12-01  0:40       ` Dmitry Gutov

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='CAAfMPgCNiv=gJXV27F_zpMO+vi6azJZPPEk5yAQQeq8BD4rN7Q@mail.gmail.com' \
    --to=dan.skarda@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.