Giter VIP home page Giter VIP logo

Comments (4)

smile13241324 avatar smile13241324 commented on August 30, 2024 1

Sounds reasonable I'll put it in my queue

from spacemacs.

smile13241324 avatar smile13241324 commented on August 30, 2024 1

I am going to remove undo-tree due to a lot of other issues anyway so no need to bother with the message.

Once it is removed though I would be happy about some feedback though.

from spacemacs.

smile13241324 avatar smile13241324 commented on August 30, 2024 1

Merged your PR @fnussbaum

from spacemacs.

fnussbaum avatar fnussbaum commented on August 30, 2024

The problem I have is that when I try to use auto-completion in an emacs-lisp buffer the auto-completion gets unuseably slow

I encountered the same problem, but it was not due to orderless, as it persisted with only the basic completion style enabled on my system. I looked into it, and it was mainly due to undo-tree polluting obarray with hundreds of thousands garbage symbols undo-tree-id.... The following function counted more than a million for me:

(defun fn/count-undo-tree-ids ()
  (interactive)
  (let ((count 0))
    (cl-do-all-symbols (sym)
      (when (string-prefix-p "undo-tree-id" (symbol-name sym))
        ;; (unintern sym) ; this fixes the slowness for me
        (cl-incf count)))
    (message "Counted %s undo-tree-id symbols in obarray." count)))

Those symbols were initially created to deal with markers and should have stayed uninterned, but they get interned implicitly during deserialisation. In particular they do not serve any purpose after deserialisation, as undo-tree-deserialize initialises the object-pool to an empty hash table, and markers do not survive having their buffer killed anyway.

The completion using company still felt a little bit slow, hence I switched to corfu for emacs-lisp-mode which unlike company does not seem to slow down typing at all, and one can easily use orderless with a SPC separator.

Sounds reasonable I'll put it in my queue

I think the existing advice is fine, at least on my system disabling orderless does not seem to have any benefits.

from spacemacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.