Yii Framework Forum: Yii Framework and it's size - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Framework and it's size Rate Topic: -----

#1 User is offline   dotangelo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 06-April 10

Posted 02 May 2010 - 09:33 AM

Hi!
I don't know where exactly should I post this question, so I'll place it here.
Yii /framework folder contains 1360 files (8,19 MB) which is quite a big amount of files.
I was wondering if using yiilite.php will reduce all these files to just one - yiilite, but it looks like my applications still wants some files from "/framework" directory.
Is there any way to decrease production size of Yii framework application ?
"Because some things, just need to be improved."
0

#2 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 02 May 2010 - 01:07 PM

All files there are required files by the framework, I don't think if there is (or even possible) to have a reduced size framework. Reducing size means reducing functionality.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#3 User is offline   jayrulez 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 348
  • Joined: 29-July 09

Posted 02 May 2010 - 01:21 PM

You could possible remove some of the translations. That's where the bulk of the files are.
php:
foreach(array('cat', 'dog', 'cow') as $animal) echo $animal."\n";

python:
[(animal, print(animal)) for animal in ['cat', 'dog', 'cow']]

ruby:
['cat', 'dog', 'cow'].each {|animal| puts animal}


You say Tomato, I say Tomato.
0

#4 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 03 May 2010 - 01:32 AM

Since yiilite.php contains most core classes, you could try the following, but it could be very cumbersome:

  • Create your own framework directory and only copy yiilite.php into that folder
  • Copy all asset files (js/css/gif) and packages.php from web/js to web/js in your directory
  • If you use zii widgets: copy all classfiles you use from zii including their assets to your directory

You could start by copying only the basic files first and check if your application throws an error or any asset file could not get loaded (firebug). Add missing classes step by step. In the end you should have the smallest footprint possible.
0

#5 User is offline   dotangelo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 06-April 10

Posted 08 May 2010 - 05:02 AM

Thank you for your replies. In comparison to ex. Symfony, Yii is not so bad if it's about the size. I just wanted to improve upload to FTP time, but using SSH solved my problem.
"Because some things, just need to be improved."
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users