Sergio Ruiz
2012-11-24 21:29:21 UTC
A client has very strict rules about tools one can bring to in house computers. One must declare the editors, compilers and libraries, have them inspected, install everything shortly before starting to work, and remove at the end. As for editors, I need to obey the following directives:
1 -- Distribution must not be larger than 50 MB. Emacs barely fits this tag. VIM fits easily (8.5 MB).
2 -- The virtual machine must be included in the distribution. Well, I guess the virtual machine for elisp is indeed included in the distribution. However, I have a question: What is the size of the virtual machine after compilation?
~/ae$ ls /usr/bin/emacs -lia
7876804 -rwxr-xr-t 2 root root 13669550 2012-11-19 10:55 /usr/bin/emacs
Can I say that the virtual machine occupies 13 MB in the client's hard disk?
3 -- Start up time must be under 3 seconds in the slow compact machines (Atom dual core) that the client's staff uses.
It seems that slow support by people working with Eclipse vexed this client so much that the management imposed these rules. My question is: How big is the elisp virtual machine? Is it smaller than 30 MB?
My second question is: How to measure Emacs start-up time? What I am doing is to run the following script:
~/ae$ time emacs -nw --eval\
"(progn (find-file \"shell.tex\")\
(save-buffers-kill-terminal))"
real 0m0.487s
user 0m0.440s
sys 0m0.044s
In the client's machine, the above test produces a start-up time of 0.487. However, I am not sure whether Emacs really loaded the "shell.tex" file. What is worse, the client's engineers are not convinced either. Therefore, I changed the command line to:
~/ae$ time emacs -nw --eval "(progn (find-file \"shell.tex\")\
(sit-for 2) (save-buffers-kill-terminal))"
real 0m2.504s
user 0m0.460s
sys 0m0.044s
After subtracting the sit-for, I have 2.504. Is there a better way to do this? In VIM, I do the following:
~/ae$ vim --startuptime s.log s.log
Thank you for answering these questions.
1 -- Distribution must not be larger than 50 MB. Emacs barely fits this tag. VIM fits easily (8.5 MB).
2 -- The virtual machine must be included in the distribution. Well, I guess the virtual machine for elisp is indeed included in the distribution. However, I have a question: What is the size of the virtual machine after compilation?
~/ae$ ls /usr/bin/emacs -lia
7876804 -rwxr-xr-t 2 root root 13669550 2012-11-19 10:55 /usr/bin/emacs
Can I say that the virtual machine occupies 13 MB in the client's hard disk?
3 -- Start up time must be under 3 seconds in the slow compact machines (Atom dual core) that the client's staff uses.
It seems that slow support by people working with Eclipse vexed this client so much that the management imposed these rules. My question is: How big is the elisp virtual machine? Is it smaller than 30 MB?
My second question is: How to measure Emacs start-up time? What I am doing is to run the following script:
~/ae$ time emacs -nw --eval\
"(progn (find-file \"shell.tex\")\
(save-buffers-kill-terminal))"
real 0m0.487s
user 0m0.440s
sys 0m0.044s
In the client's machine, the above test produces a start-up time of 0.487. However, I am not sure whether Emacs really loaded the "shell.tex" file. What is worse, the client's engineers are not convinced either. Therefore, I changed the command line to:
~/ae$ time emacs -nw --eval "(progn (find-file \"shell.tex\")\
(sit-for 2) (save-buffers-kill-terminal))"
real 0m2.504s
user 0m0.460s
sys 0m0.044s
After subtracting the sit-for, I have 2.504. Is there a better way to do this? In VIM, I do the following:
~/ae$ vim --startuptime s.log s.log
Thank you for answering these questions.