[Phpmyadmin-devel] use of count() in for loops
Hugues Peccatte
hugues.peccatte at gmail.com
Mon Feb 17 14:19:49 CET 2014
Hi,
2014-02-17 13:56 GMT+01:00 Marc Delisle <marc at infomarc.info>:
> Minhaz A V a écrit :
> > Hi,
> > Do I have to add it to bug tracker first or I can directly send the pull
> > request!
> >
>
> Hi,
> (Please use bottom-posting on this list).
>
> This is not a bug, it's a speed improvement.
>
I would add: don't forget to sign your commit with the -s option.
>
> >
> > Minhaz
> > cistoner.org
> >
> >
> > On Sun, Feb 16, 2014 at 8:55 PM, Hugues Peccatte
> > <hugues.peccatte at gmail.com>wrote:
> >
> >> Hi,
> >>
> >> 2014-02-14 23:21 GMT+01:00 Minhaz A V <minhazav at gmail.com>:
> >>
> >> Hi,
> >>> I was going through the codes and at many places I found use of
> *count()
> >>> *inside the *for* statement.
> >>> I think statements like
> >>>
> >>> *for($i = 0; $i < count($arr); $i++)*
> >>> should be converted with statements like
> >>>
> >>> *$len = count($arr);*
> >>> *for($i = 0; $i < $len; $i++)*
> >>>
> >>> this would help us speed up the whole phpMyAdmin system.
> >>>
> >> You're right. The second write is better. But as you said in your second
> >> mail, we try to avoid the first syntax.
> >> If you find the use of count into a loop, please fix it a send a pull
> >> request.
> >>
> >> Thanks,
> >> Hugues.
> >>
>
>
>
> --
> Marc Delisle
> http://infomarc.info | http://phpmyadmin.net
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>
Hugues.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20140217/b5e27375/attachment.html>
More information about the Developers
mailing list