diogocavilha / fancy-git

That's a terminal prompt changer that shows a few cool git informations about your repository state. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)
GNU General Public License v2.0
473 stars 64 forks source link

Compile shell scripts #120

Open Vanillma opened 2 years ago

Vanillma commented 2 years ago

Hello Bro

This program makes my terminal very beautiful and makes it easy for me to work with the git... Thank you very much.

Given that compiled files run faster, isn't it better to include compiled files in the project as well?

Or put the make file to compile in the client terminal in the project folder!

I was able to compile using shc ... the reason for this idea was a slight delay in each prompt update after executing the command...

I think if the files (shell script) are compiled and converted to binary, the delay will be less! thanks

diogocavilha commented 2 years ago

Hello, @Vanillma

Thank you so much for using FancyGit and for giving me that feedback.

This is a really tricky issue. I'm not so happy with that performance too. Compiled shell might be a good solution for that. I'll take a look at it for sure.

Thank you so much for suggesting it!

tsadarsh commented 2 years ago

I have been digging on shc and it seems that shc is only good for weak obfuscation. source.

Still not clear if shc can improve execution speed. I have opened an query regarding this in the shc repo.

Edit:

It is confirmed that shc makes the execution slower. We have to explore other way to make it faster.