Remove all that models from $uses and associations. Load only models
you need and bind only associations you need for concrete query. Avoid
requestAction(). Use lazy loader for helpers.

Your models take about 4.25MB and your helpers take about 3.75MB.

Avoid keep in controller/model and set unnecessary data into view and
large arrays copying. Never do $myModel = new MyModel();

On Sep 8, 4:56 pm, ioustinos <[email protected]> wrote:
> i added this function to many places in cakes code for a specific page
> request
> function mmm($t=''){
>        $MMMEM[] = $t .' - ' . ByteSize(memory_get_usage(true));
>
> }
>
> example of call....mmm('component start');
>
> this is what i got.
> is this reasonable?
> thanks
>
> webroot index start - 256.00 KB
> included boostrap - 4.00 MB
> dispatcher start - 4.00 MB
> controller construct start - 4.25 MB
> controller      construct end - 4.25 MB
> dispatcher end - 4.25 MB
> dispatcher invoke start - 4.25 MB
> controller constructClasses start - 4.25 MB
> controller constructClasses before component init - 4.25 MB
> component loading: Session - 4.25 MB
> component loading: Auth - 4.75 MB
> component loading: Session - 5.00 MB
> component loading: RequestHandler - 5.00 MB
> component loading: Acl - 5.00 MB
> model constructor start: Aro - 7.00 MB
> model constructor start: Aco - 8.25 MB
> model constructor start: Permission - 8.25 MB
> component loading: Cookie - 8.75 MB
> component loading: RequestHandler - 9.00 MB
> component loading: Imagecomp - 9.00 MB
> component loading: Filter - 9.00 MB
> component loading: Search - 9.00 MB
> component loading: Myobj - 9.00 MB
> component loading: Email - 9.00 MB
> controller constructClasses after component init - 9.50 MB
> model constructor start: Season - 9.50 MB
> model constructor start: Competition - 10.00 MB
> model constructor start: Leg - 10.00 MB
> model constructor start: Game - 10.50 MB
> model constructor start: Court - 10.50 MB
> model constructor start: Team - 10.50 MB
> model constructor start: Club - 10.75 MB
> model constructor start: Trainer - 10.75 MB
> model constructor start: Country - 11.00 MB
> model constructor start: Player - 11.00 MB
> model constructor start: Position - 11.00 MB
> model constructor start: GamesPlayer - 11.25 MB
> model constructor start: Article - 11.50 MB
> model constructor start: User - 11.50 MB
> model constructor start: Group - 11.50 MB
> model constructor start: Image - 11.75 MB
> model constructor start: Mypage - 11.75 MB
> model constructor start: Mylayout - 11.75 MB
> model constructor start: Mysetting - 12.00 MB
> model constructor start: - 12.00 MB
> model constructor start: - 12.00 MB
> model constructor start: Video - 12.00 MB
> model constructor start: - 12.00 MB
> model constructor start: Pdf - 12.00 MB
> model constructor start: Article - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: - 12.25 MB
> model constructor start: GamesTeam - 12.50 MB
> model constructor start: CompetitionsTeam - 12.50 MB
> model constructor start: - 12.75 MB
> model constructor start: - 12.75 MB
> model constructor start: Player - 12.75 MB
> model constructor start: Team - 12.75 MB
> model constructor start: Team - 12.75 MB
> model constructor start: Trainer - 12.75 MB
> model constructor start: Referee - 12.75 MB
> model constructor start: Referee - 12.75 MB
> model constructor start: Referee - 12.75 MB
> model constructor start: Referee - 12.75 MB
> model constructor start: Officer - 13.00 MB
> model constructor start: Livegame - 13.25 MB
> model constructor start: Event - 13.25 MB
> model constructor start: Eventtype - 13.25 MB
> model constructor start: Liveplayer - 13.50 MB
> model constructor start: - 13.50 MB
> model constructor start: - 13.50 MB
> model constructor start: - 13.50 MB
> model constructor start: Rating - 13.50 MB
> model constructor start: Ratingsrec - 13.50 MB
> model constructor start: Assoc - 13.75 MB
> model constructor start: - 13.75 MB
> controller constructClasses after $uses loaded - 13.75 MB
> dispatcher      invoke after controller constructClasses - 13.75 MB
> dispatcher      invoke after controller initialization - 13.75 MB
> model constructor start: Mylayout - 14.25 MB
> model constructor start: Mypage - 14.25 MB
> model constructor start: Competition - 14.25 MB
> model constructor start: Competition - 14.50 MB
> model constructor start: Mypage - 14.75 MB
> model constructor start: Competition - 14.75 MB
> dispatcher      invoke after controller beforeFilter - 15.00 MB
> dispatcher      invoke adter controller startup - 15.00 MB
> dispatcher      invoke after controller dispatchMethod - 16.25 MB
> dispatcher      invoke after controller render - 20.00 MB
> dispatcher      invoke after afterFilter - 20.00 MB
> dispatcher      invoke end - 20.50 MB
> the end - 20.50 MB

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to