In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000475 [In-Portal CMS] Optimization task always 2009-12-23 02:24 2012-07-25 05:33
Reporter alex View Status public Project Name In-Portal CMS
Assigned To !COMMUNITY Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.2.0-B1 Product Version 5.0.2-B1
  Target Version 5.2.0 Product Build
Time EstimateNo estimate
Summary 0000475: Inappropriate "eval" usage in kBase::makeClass method
Description Method kBase::makeClass is calling ref_call_user_func_array no matter if he has only class name or class name + constructor arguments passed. This slows downs the things a little bit. I propose to use code, mentioned above, that was called from kFactory class to optimize things.

if ( func_num_args() == 1 ) {
    $class = new $real_class();
}
else {
    $func_args = func_get_args();
    $pseudo_class = array_shift($func_args);
    $class =& ref_call_user_func_array( Array ($real_class,'makeClass'), $func_args );
}

-------------------------

Also kDBLIst class constructor during filter creation calls makeClass 13 times, but there are only two class types it creates, so we could create two classes and just clone them to create other fiters. Here is problematic code:

$filters = $this->getFilterStructure();

foreach ($filters as $filter_params) {
    $filter =& $this->$filter_params['type'];
    $filter[ $filter_params['class'] ] =& $this->Application->makeClass('kMultipleFilter', $filter_params['join_using']);
}
Steps To Reproduce
Additional Information
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-dev/browse_thread/thread/21f5102cb136107e?hl=en
Change Log Message
Estimate Points 2
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0003893)
alex (manager)
2011-09-24 05:14

This maybe is already done. Needs to be checked.
User avatar (0003921)
alex (manager)
2011-09-27 05:05

This was already done during mass refactoring in 5.2.0
User avatar (0003922)
alex (manager)
2011-09-27 05:05

Will test later on.
User avatar (0005082)
alex (manager)
2012-07-25 05:33

Since 5.2.0 version was released.

- Issue History
Date Modified Username Field Change
2012-07-25 05:33 alex Note Added: 0005082
2012-07-25 05:33 alex Status resolved => closed
2011-10-22 05:37 alex Estimate Points => 2
2011-09-27 05:06 alex Status reviewed and tested => resolved
2011-09-27 05:06 alex Fixed in Version => 5.2.0-B1
2011-09-27 05:06 alex Resolution open => fixed
2011-09-27 05:05 alex Note Added: 0003922
2011-09-27 05:05 alex Status needs testing => reviewed and tested
2011-09-27 05:05 alex Note Added: 0003921
2011-09-27 05:05 alex Assigned To => !COMMUNITY
2011-09-27 05:05 alex Developer => alex
2011-09-27 05:05 alex Status active => needs testing
2011-09-24 05:14 alex Note Added: 0003893
2011-09-23 21:54 Dmitry Target Version Icebox => 5.2.0
2009-12-23 02:24 alex Target Version => Icebox
2009-12-23 02:24 alex New Issue
2009-12-23 02:24 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/21f5102cb136107e?hl=en



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker