[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Massive inflation of .qrc files
From:       Pou Belle <belepoub () gmail ! com>
Date:       2018-01-04 17:46:10
Message-ID: CAH27=--vAqngF+Yx-8zC8ogAx=cOdcCeJJkm-nTFgceE-yEdNw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm sorry, I don't know why my message appeared with "*' characters
everywhere, here it is again :



Scott Harvey wrote
> I've noticed that compiling a .qrc file into a qrc.py file results in a
> massive increase in size, especially when containing an image.
>
> File            Size
> -------                          -----------
> splash.png      97244
> splash.qrc          86
> splash_qrc.py  402588


Hello Scott,

Compile your splash_qrc.py into a splash_qrc.pyc file, it will become very
small again.

Here is what I get on my current project :

File                  Size
Resources (png, jpg) : 124172
resources.qrc :          429
resources_rc.py :      373507
resources_rc.pyc :      89712

The only file that will really be loaded by python (pyc : 89712) is even
smaller than the sum of the original files (124172).
pyrcc is making my life a lot easier, I love it.

Cheers.


2018-01-04 11:47 GMT+01:00 Pou Belle <belepoub@gmail.com>:

>
> *Scott Harvey wrote*
> *> I've noticed that compiling a .qrc file into a qrc.py file results in a*
> *> massive increase in size, especially when containing an image.*
> *> *
> *> File            Size*
> *> -------                          -----------*
> *> splash.png      97244*
> *> splash.qrc          86*
> *> splash_qrc.py  402588*
>
>
> *Hello Scott,*
>
> *Compile your splash_qrc.py into a splash_qrc.pyc file, it will become
> very small again.*
>
> *Here is what I get on my current project :*
>
> *File                  Size*
> *Resources (png, jpg) : 124172*
> *resources.qrc :          429*
> *resources_rc.py :      373507*
> *resources_rc.pyc :      89712*
>
> *The only file that will really be loaded by python (pyc : 89712) is even
> smaller than the sum of the original files (124172).*
> *pyrcc is making my life a lot easier, I love it.*
>
> *Cheers.*
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>I&#39;m sorry, I don&#39;t know why my message appeared with \
&quot;*&#39; characters everywhere, here it is again \
:</div><div><br></div><div><br></div><div><br></div><div>Scott Harvey \
wrote</div><div>&gt; I&#39;ve noticed that compiling a .qrc file into a qrc.py file \
results in a</div><div>&gt; massive increase in size, especially when containing an \
image.</div><div>&gt;  </div><div>&gt; File                  Size</div><div>&gt; \
-------                                       -----------</div><div>&gt; splash.png   \
97244</div><div>&gt; splash.qrc               86</div><div>&gt; splash_qrc.py   \
402588</div><div><br></div><div><br></div><div>Hello \
Scott,</div><div><br></div><div>Compile your splash_qrc.py into a splash_qrc.pyc \
file, it will become very small again.</div><div><br></div><div>Here is what I get on \
my current project :</div><div><br></div><div>File                           \
Size</div><div>Resources (png, jpg) : 124172</div><div>resources.qrc :               \
429</div><div>resources_rc.py :         373507</div><div>resources_rc.pyc :         \
89712</div><div><br></div><div>The only file that will really be loaded by python \
(pyc : 89712) is even smaller than the sum of the original files \
(124172).</div><div>pyrcc is making my life a lot easier, I love \
it.</div><div><br></div><div>Cheers.</div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">2018-01-04 11:47 GMT+01:00 Pou Belle \
<span dir="ltr">&lt;<a href="mailto:belepoub@gmail.com" \
target="_blank">belepoub@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><br><div><div><font color="#454d4b" face="Verdana, Geneva, Helvetica, \
Arial, sans-serif"><span style="font-size:13.44px"><b>Scott Harvey \
wrote</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; I&#39;ve \
noticed that compiling a .qrc file into a qrc.py file results in \
a</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, Helvetica, \
Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; massive increase in size, \
especially when containing an image.</b></span></font></div><div><font \
color="#454d4b" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>&gt;  </b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>&gt; File                  \
Size</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; -------         \
-----------</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; splash.png      \
97244</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; splash.qrc      \
86</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>&gt; splash_qrc.py   \
402588</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>Hello Scott,</b></span></font></div><div><font \
color="#454d4b" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>Compile your splash_qrc.py into a splash_qrc.pyc file, \
it will become very small again.</b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>Here is what I get on my current project \
:</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, Helvetica, \
Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>File                           \
Size</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>Resources (png, jpg) \
: 124172</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>resources.qrc :      \
429</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>resources_rc.py :    \
373507</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>resources_rc.pyc :   \
89712</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>The only file that will really be loaded by python (pyc \
: 89712) is even smaller than the sum of the original files \
(124172).</b></span></font></div><div><font color="#454d4b" face="Verdana, Geneva, \
Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><b>pyrcc is making my \
life a lot easier, I love it.</b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b><br></b></span></font></div><div><font color="#454d4b" \
face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span \
style="font-size:13.44px"><b>Cheers.</b></span></font></div><div \
style="font-weight:bold"><br></div></div></div> </blockquote></div><br></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic