[vim-tiny] first draft

Stefano Zacchiroli zack at debian.org
Tue Nov 1 16:03:03 UTC 2005


On Mon, Oct 31, 2005 at 11:44:37PM +0100, Pierre Habouzit wrote:
> > As a first glance the features compiled in vim-tiny could be enlarged
> > since ATM the installed size of vim-tiny is just 480 Kb (+ additional
> > 360 Kb of vim common), with the very same dynamic dependencies of the
> > nvi executable.
> 
> isn't this already quite big ?
> 
> [madcoder hades] apt-cache show nvi|grep \^Size
> Size: 295262

You're comparing the Size of nvi with the Installed-Size of vim, quite
an unfair comparison :-)

  zack at aquarium:~$ apt-cache show nvi | grep Installed-Size
  Installed-Size: 632

> maybe we should compile it with -Os ?

I have not tried, but it is a good idea.

Anyhow this morning I made some additional statistics about the size of
the vim tiny executable with some additional features, these are the
results [1]:

  zack at aquarium:~/pkg-vim/trunk$ ls -l tiny-executables/*/usr/bin/
  tiny-executables/big-features/usr/bin/:
  -rwxr-xr-x  1 zack zack 1112748 2005-11-01 09:35 vim.tiny
  tiny-executables/normal-features/usr/bin/:
  -rwxr-xr-x  1 zack zack 970700 2005-11-01 09:32 vim.tiny
  tiny-executables/small-features+extras2/usr/bin/:
  -rwxr-xr-x  1 zack zack 665996 2005-11-01 13:07 vim.tiny
  tiny-executables/small-features+extras/usr/bin/:
  -rwxr-xr-x  1 zack zack 710604 2005-11-01 13:05 vim.tiny
  tiny-executables/small-features/usr/bin/:
  -rwxr-xr-x  1 zack zack 485036 2005-11-01 09:28 vim.tiny
  tiny-executables/tiny-features/usr/bin/:
  -rwxr-xr-x  1 zack zack 439692 2005-10-31 21:11 vim.tiny

And this is the legend:
- {tiny,small,normal,big}-features:
  --with-feature=xxx

- small-feature+extras:
  --with-features=small
  + the following features (quoting from help +feature-list) [2]:
  N  *+autocmd*   |:autocmd|, automatic commands
  N  *+byte_offset* support for 'o' flag in 'statusline' option, "go"
  N  *+cmdline_compl* command line completion |cmdline-completion|
  N  *+cmdline_hist*  command line history |cmdline-history|
  N  *+cmdline_info*  |'showcmd'| and |'ruler'|
  N  *+comments*    |'comments'| support
  N  *+diff*    |vimdiff| and 'diff'
  N  *+digraphs*    |digraphs| *E196*
  N  *+eval*    expression evaluation |eval.txt|
  N  *+extra_search*  |'hlsearch'| and |'incsearch'| options.
  N  *+file_in_path*  |gf|, |CTRL-W_f| and |<cfile>|
  N  *+insert_expand* |insert_expand| Insert mode completion
  N  *+listcmds*    Vim commands for the list of buffers |buffer-hidden|
  N  *+quickfix*    |:make| and |quickfix| commands
  N  *+scrollbind*  |'scrollbind'|
  N  *+smartindent* |'smartindent'|
  N  *+viminfo*   |'viminfo'|
  N  *+vertsplit*   Vertically split windows |:vsplit|
  N  *+visualextra* extra Visual mode commands |blockwise-operators|

- small-features+extras2:
  as above without support for vimdiff (which removes from the above
  features: autocmd, diff, scrollbind, vertsplit)

> I fear that this-quite-1Mo-package is already too big :/ what are the 
> needs to be in base in your opinion ?

I have no idea, now that I've some stats I think I will mail the
bugreport about vim-tiny asking the opinion of the submitter (Joey Hess)
and perhaps ask on d-d who is resonsible for the base system. I believe
it is the installer team and thus Joey is still the right person to get
in touch with. Personally, I would go for the small-features+extras
variant, I think 1.2 Mb (its size including vim-common) could be
acceptable for the base system, but we will see ...

Cheers.

[1] ls shows the size of the executable, but the size of the .deb is
    approximatively the same, since vim-tiny contains in addition only a
    lintian override.

[2] compiling vim with some features in additions to those chosen by the
    --with-features flag has been far from easy and required hacking of
    src/feature.h at package build time. I solved that issue using a
    .txt file which describe which feature we want
    (debian/tiny-features.txt) which is "compiled" in a .h
    (debian/tiny-feature.h) and included from src/feature.h when
    building the vim-tiny variant. Have a look to the forthcoming commit
    of mine in branches/vim-tiny/ for details.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20051101/83f8d669/attachment.pgp


More information about the pkg-vim-maintainers mailing list