[phpMyAdmin Git] [phpmyadmin/phpmyadmin] e52bbd: PMA_getRealSize - Performance and Readability
Michal Čihař
michal at cihar.com
Tue Dec 13 08:09:48 CET 2016
Branch: refs/heads/master
Home: https://github.com/phpmyadmin/phpmyadmin
Commit: e52bbde39b46172e6f8535c66db2b0d924f94ad0
https://github.com/phpmyadmin/phpmyadmin/commit/e52bbde39b46172e6f8535c66db2b0d924f94ad0
Author: jrchamp <jonathan_champ at ncsu.edu>
Date: 2016-12-09 (Fri, 09 Dec 2016)
Changed paths:
M libraries/core.lib.php
Log Message:
-----------
PMA_getRealSize - Performance and Readability
The "upstream" Moodle code was updated in MDL-39524; rather than looping through the options, preg_match allows us to directly select the correct multiplication factor with a single function call. Note that the default behavior (integer coercion) handles both bare integers and numbers of bytes (factor 1).
Signed-off-by: Jonathan Champ <jrchamp at ncsu.edu>
Commit: 06d76588c2340475fbafd27cb4ce75050242513b
https://github.com/phpmyadmin/phpmyadmin/commit/06d76588c2340475fbafd27cb4ce75050242513b
Author: Michal Čihař <michal at cihar.com>
Date: 2016-12-13 (Tue, 13 Dec 2016)
Changed paths:
M libraries/core.lib.php
Log Message:
-----------
Merge pull request #12797 from jrchamp/patch-1
PMA_getRealSize - Performance and Readability
Compare: https://github.com/phpmyadmin/phpmyadmin/compare/a9bd6bebb2c9...06d76588c234
More information about the Git
mailing list