Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display the icons very slowly #28

Closed
zchtoy opened this issue Dec 19, 2016 · 13 comments
Closed

Display the icons very slowly #28

zchtoy opened this issue Dec 19, 2016 · 13 comments

Comments

@zchtoy
Copy link

zchtoy commented Dec 19, 2016

I use Emacs25.1+windows10
When i use all-the-icons with neotree wo all-the-icons-dired ,while call neotree-toggle or dired(C-x d),the emacs become very slow.

the config is

(require 'all-the-icons)
(require 'all-the-icons-dired)
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode)

@domtronn
Copy link
Owner

I will have a look at this when I get home this evening. I have a Windows 10 machine at home and will see if I can reproduce this :)

@zchtoy
Copy link
Author

zchtoy commented Dec 21, 2016

Thank you very much for your confirm

@domtronn
Copy link
Owner

I had a look at this last night, and unfortunately, I was able to reproduce this... :(

For me, it seemed more than capable at rendering the view, the Neotree finder showed quickly. However, it's the navigation in the buffer that acts slowly. I also tried inserting all of the different icon sets into an empty *scratch* buffer and found the same thing happened when there were a lot of icons in the buffer...

I called (all-the-icons-insert-icons-for 'alltheicon) and this inserted ~65 icon... And in this case it was fine and didn't slow down... The other icon sets did slow down drastically.

I also tried modifying the Neotree code to only use icons for files, and only render 5 files, but this was still slowed down...

So unfortunately, I don't really have any information that can help :( I don't much about how Windows font rendering works... I will try the

  • Same tests without colorizing the icons to see if those extra display properties have an impact.
  • Try installing Emacs 24.X to see if its something in 25

I will keep investigating and let you know if I find anything! Sorry you're having this problem...

@zchtoy
Copy link
Author

zchtoy commented Jan 3, 2017

Hi @domtronn i had installed spacemacs at the same situation,and now it can show all the icons in neotree and dired in normaly

@domtronn
Copy link
Owner

domtronn commented Jan 8, 2017

Hi @zchtoy, I'm glad this is working for you now! It's strange that it works in Spacemacs... But hanks for the info! :) I'm probably going to investigate this a lot bit further with different versions of Emacs on Windows to see what I can find.

However, are you happy if I resolve this issue?

@zchtoy
Copy link
Author

zchtoy commented Jan 10, 2017

Hi @domtronn I,m very glad if you resolve this issue. If you resolve it I will use emacs without spacemacs

@sho-87
Copy link

sho-87 commented May 18, 2017

I'm getting the same issue with neotree and would rather not have to install spacemacs just to get this working. Any thoughts on what spacemacs might be doing to get this working correctly?

@Kungsgeten
Copy link
Contributor

Try to add this to your init file:

(setq inhibit-compacting-font-caches t)

@sho-87
Copy link

sho-87 commented Jun 30, 2017

that seems to have fixed the lag, thanks!

@domtronn
Copy link
Owner

domtronn commented Jul 4, 2017

That's really cool, thanks for posting this @Kungsgeten! I didn't know that was a thing but I'll update the README.md with a mention of this for Windows/Slow renders :)

@Kungsgeten
Copy link
Contributor

Yes it isn't very well known unfortunately. I found out about it after googling for a while, but it is well hidden.

@domtronn
Copy link
Owner

domtronn commented Jul 6, 2017

Closing this now, as we now have a working improvement/solution 🎉

@shankarpdy
Copy link

I also the same slowness issue with Windows10+all-the-icon,
Setting this help and back to normal
(setq inhibit-compacting-font-caches t)

Thanks a ton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants