[7399] in SIPB bug reports
Re: vim is not stripped
daemon@ATHENA.MIT.EDU (John Hawkinson)
Wed Oct 20 13:04:54 1999
Message-Id: <199910201703.NAA16835@contents-vnder-pressvre.mit.edu>
To: Emil Sit <sit@MIT.EDU>
Cc: bug-sipb@MIT.EDU
In-Reply-To: Your message of "Wed, 20 Oct 1999 12:43:50 EDT."
<199910201643.MAA23260@m2-032-13.mit.edu>
Date: Wed, 20 Oct 1999 13:03:35 -0400
From: John Hawkinson <jhawk@MIT.EDU>
In message <199910201643.MAA23260@m2-032-13.mit.edu>, Emil Sit writes:
>Currently, the vim binary is not stripped. So, on Sun's for example,
>it's about 5 megs. It would probably start up a lot faster if
>the binaries were stripped...
I don't think so.
afs reads files in chunks rather than the entire file; demand paged
executables with large symbol tables should start with the same
speed as their unstripped versions.
On a back of the envelope test, after having flushed the afs cache:
[contents-vnder-pressvre!jhawk] /afs/sipb/user/jhawk> time ./x0 -\?
VIM - Vi IMproved 5.3 (1998 Aug 30, compiled Jan 30 1999 18:55:18)
Unknown option: "-?"
More info with: "vim -h"
0.02u 0.11s 0:08.16 1.5%
[contents-vnder-pressvre!jhawk] /afs/sipb/user/jhawk> time ./x1 -\?
VIM - Vi IMproved 5.3 (1998 Aug 30, compiled Jan 30 1999 18:55:18)
Unknown option: "-?"
More info with: "vim -h"
0.02u 0.03s 0:09.11 0.5%
[contents-vnder-pressvre!jhawk] /afs/sipb/user/jhawk> ls -ld x0 x1
-rwxr-xr-x 1 jhawk mit 4985996 Oct 20 12:58 x0
-rwxr-xr-x 1 jhawk mit 707136 Oct 20 12:58 x1
x0 was the unstripped vim and x1 the stripped vim. The stripped
vim actually took longer, but I would chalk that up to experimental
error and changing conditions.
I think it's very dangerous to start installing stripped binaries.
Certainly if we do that, we should endeavor to installed a vim.unstripped
binary in the locker as well for debugging purposes. Hopefully they
would not get out of sync.
It does seem like something is terribly wrong here, if it takes
9 seconds to start what should be the trivial and fast editor. Even
in the cache it is slow, though:
[contents-vnder-pressvre!jhawk] /afs/sipb/user/jhawk> time ./x0 -\?
VIM - Vi IMproved 5.3 (1998 Aug 30, compiled Jan 30 1999 18:55:18)
Unknown option: "-?"
More info with: "vim -h"
0.01u 0.03s 0:00.68 5.8%
[contents-vnder-pressvre!jhawk] /afs/sipb/user/jhawk> time ./x1 -\?
VIM - Vi IMproved 5.3 (1998 Aug 30, compiled Jan 30 1999 18:55:18)
Unknown option: "-?"
More info with: "vim -h"
0.02u 0.02s 0:00.24 16.6%
I would suggest that perhaps there is something wrong with vim and it
needs to be profiled somehow.
--jhawk