Jump to content


Photo

Picon cleanup utility

Picons

  • Please log in to reply
6 replies to this topic

#1 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 27 August 2011 - 13:55

Built a small script to clean up Picon directories. What it does:

- Looks for picons on whatever you've mounted.

For each picon path found, it does the following:
- Convert symbolic links into hard links (more efficient)
- Remove all png files that aren't service references.

This is definitely not convenient if you are creating or editing icon sets. But if you're just using them, the script will typically reduce the number of files in the picon directories by about 40% and also cut the number of directory accesses needed to find a picon in half. And it removes unused icon files.

Just copy the script anywhere on the box, and run it from a telnet session (for example, "python /tmp/piconoptimizer.py"). No need to stop or restart enigma2.

Attached Files


Real musicians never die - they just decompose

Re: Picon cleanup utility #2 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 27 August 2011 - 14:10

Here are the results for Slagharen / Overijssel:

Before: 10.160k / 4029 files
After: 5829K / 2305 files

Thnx very much, I think you should implement it in OpenPli serive menu!

Re: Picon cleanup utility #3 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 27 August 2011 - 18:50

Here are the results for Slagharen / Overijssel:

Before: 10.160k / 4029 files
After: 5829K / 2305 files

Thnx very much, I think you should implement it in OpenPli serive menu!



I do too. it`s a very welcome addition!!! Openpli is amazing!!!

Re: Picon cleanup utility #4 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 27 August 2011 - 19:10

I tried to do this offline today, but didn't manage to create ipk files containing hardlinks. Though tar supports them just fine.

Guess I should make it a ppanel or plugin or so.
Real musicians never die - they just decompose

Re: Picon cleanup utility #5 Lukin

  • Senior Member
  • 137 posts

+8
Neutral

Posted 28 August 2011 - 19:04

Guess I should make it a ppanel or plugin or so.



That`d be awesome, Can`t wait!!! Thx MiLo.

Re: Picon cleanup utility #6 jozy

  • Senior Member
  • 72 posts

+1
Neutral

Posted 30 August 2011 - 21:56

nice script Milo!

Re: Picon cleanup utility #7 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 10 April 2012 - 16:11

it removing all picons for services 1_0_19_ ... and 1_0_16_...
Kdo nic nedělá, nic nezkazí!



Also tagged with one or more of these keywords: Picons

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users