Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] UPX for xmbc.bin
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: UPX for xmbc.bin
1st Nov, 2014, 03:34 AM
Post: #1
dentaku65 Offline
Registered
Posts: 12
Joined: Oct 2014
Reputation: 0
UPX for xmbc.bin
Hi,

I recently stumble upon on this obscure gem called upx an executable compress/decompress packer and I've try to use it on xbian for xbmc. I know very little about it and I not so expert to make detailed benchmarks; at the moment I've seen a couple of things: the xbmc.bin compressed became half size compared to the original one and xbmc ui experience seems little bit better. Perhaps some folks here can make more specific tests.

To use upx is pretty simple, here the steps via ssh:
Stop xbmc
Code:
sudo service xbmc stop

Install upx
Code:
sudo apt-get install upx

Copy original xbmc.bin
Code:
sudo cp /usr/local/lib/xbmc/xbmc.bin /usr/local/lib/xbmc/xbmc.bin.noupx

UPX the xbmc (it takes a while)
Code:
sudo upx --best /usr/local/lib/xbmc/xbmc.bin

Start xbmc
Code:
sudo service xbmc start

Here the compressed file:
Quote:10352012 Oct 31 08:01 xbmc.bin
24984684 Oct 30 20:57 xbmc.bin.noupx

It would be interesting if someone here can try it with more of my expertise

D
Find all posts by this user
Quote this message in a reply
1st Nov, 2014, 06:45 AM
Post: #2
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: UPX for xmbc.bin
Thanks for the suggestion. I guess we'll investigate at some point, but
Quote:xbmc ui experience seems little bit better
I think this is a placebo: it would only affect load time, if it actually does.
Find all posts by this user
Quote this message in a reply
1st Nov, 2014, 08:33 AM
Post: #3
dentaku65 Offline
Registered
Posts: 12
Joined: Oct 2014
Reputation: 0
RE: UPX for xmbc.bin
(1st Nov, 2014 06:45 AM)menakite Wrote:  Thanks for the suggestion. I guess we'll investigate at some point, but
Quote:xbmc ui experience seems little bit better
I think this is a placebo: it would only affect load time, it it actually does.

Do you believe that there are no benefit at all using upx in terms of performace? Sorry but I know so little about it... Waiting for your investigation :-)
Find all posts by this user
Quote this message in a reply
1st Nov, 2014, 06:40 PM
Post: #4
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: UPX for xmbc.bin
There are no usability benefits to using upx whatsoever, sure it uses less space but uses CPU cycles to decompress at the same time.

Once launched xbmc (kodi) is memory resident, meaning it's loaded and no benefit can be had since it is already in memory.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
1st Nov, 2014, 08:56 PM
Post: #5
dentaku65 Offline
Registered
Posts: 12
Joined: Oct 2014
Reputation: 0
RE: UPX for xmbc.bin
(1st Nov, 2014 06:40 PM)f1vefour Wrote:  There are no usability benefits to using upx whatsoever, sure it uses less space but uses CPU cycles to decompress at the same time.

Once launched xbmc (kodi) is memory resident, meaning it's loaded and no benefit can be had since it is already in memory.

Ok thanks. switching back to noupx xbmc.bin :-)
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 05:39 PM Powered By MyBB, © 2002-2025 MyBB Group.