Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: caminati on August 10, 2011, 07:44:26 AM

Title: Curious about tcz-symlinker
Post by: caminati on August 10, 2011, 07:44:26 AM
I toyed a bit with tcz-symlinker by Curaga, and it seems faster than busybox cpio -ias currently used  by tce-load to shadow dirtree in a tcz.
So, if my speed assessment is not wrong, I wonder why it was dropped starting from TinyCore 2.8, and I'm finding no hints by googling.

Maybe for the usual issues regarding ram usage/bloat of tcb?

Just curious, thanks in advance.
Title: Re: Curious about tcz-symlinker
Post by: curaga on August 10, 2011, 07:59:21 AM
While it was a bit faster, and didn't have the issue of extensions overwriting directory permissions, cp does a good enough job while already being there.
Title: Re: Curious about tcz-symlinker
Post by: caminati on August 10, 2011, 09:24:24 AM
Thanks, Curaga.
Just for fun, I did a comparison benchmark to symlink a (large) package tree using lndir (6.8 Kbytes, no deps), tcz-symlink (4.7 Kbytes) and cp -ias; each test was repeated thrice in a row (in all cases with a really negligible variance) and the last value was picked:

lndir:
Code: [Select]
real    0m 0.33s
tcz-symlink:
Code: [Select]
real    0m 0.52s
busybox cp -ias:
Code: [Select]
real    0m 0.60s
I have not investigated about how lndir behaves wrt permission and timestamps; for sure I consider the way lndir handles symlinks an advantage wrt cp, see
http://forum.tinycorelinux.net/index.php?topic=8225.0 (http://forum.tinycorelinux.net/index.php?topic=8225.0)
Title: Re: Curious about tcz-symlinker
Post by: curaga on August 10, 2011, 12:19:00 PM
It would appear to ignore directories, owner group and permissions of dirs are not copied.