WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Curious about tcz-symlinker  (Read 1952 times)

Offline caminati

  • Full Member
  • ***
  • Posts: 184
    • Homepage
Curious about tcz-symlinker
« 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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Curious about tcz-symlinker
« Reply #1 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.
The only barriers that can stop you are the ones you create yourself.

Offline caminati

  • Full Member
  • ***
  • Posts: 184
    • Homepage
Re: Curious about tcz-symlinker
« Reply #2 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Curious about tcz-symlinker
« Reply #3 on: August 10, 2011, 12:19:00 PM »
It would appear to ignore directories, owner group and permissions of dirs are not copied.
The only barriers that can stop you are the ones you create yourself.