xonsh / xonsh

:shell: Python-powered, cross-platform, Unix-gazing shell.

Home Page:http://xon.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile xsh xontribs

anki-code opened this issue · comments

Hi! xonsh is a giant snail in small conch!

I found that xonsh compiles scripts and save it to the ~/.local/share/xonsh/xonsh_script_cache directory. But xonsh does not compile xsh xontribs. It will be great to compile them too to reduce the speed of start xonsh with xontribs!

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

Yeah! I just noticed this too, @anki-code. This would be great to have!

"Btw i noticed that we do not compile and cache imports on xsh files.. this cause a large time panalty if you import stuff on xonshrc... maybe we should possibly
 1 reply
make an “include” import like mechanisem for the xonshrc that just appends a file: include xonsh_aliases
Alternative is to compile every import to pyc"

It also does not compile imports from the xonshrc! or imports in general...
Maybe we should add an include command for xonsh?

include xonsh_aliases.xsh