Some improvement in performance #10

Closed
wants to merge 241 commits into
from

Conversation

Projects
None yet
5 participants
Contributor

acidvertigo commented May 25, 2011

Just a proposal to improve the performance. For example precount in for loops, using foreach instead of while, and (int) operator instead of intval function.

acidvertigo and others added some commits May 25, 2011

@acidvertigo acidvertigo Change regex to faster ctype functions 3dfa2b5
@acidvertigo acidvertigo Faster image check size fab5561
@acidvertigo acidvertigo Precount for loops for better performance 7820879
@acidvertigo acidvertigo Change while loops with foreach ba11760
@acidvertigo acidvertigo change deprecated $HTTP_XXX_VARS with $_XXX equivalent. Change regex …
…with faster ctype function.
393fb77
@acidvertigo acidvertigo Change while with foreach loop for better performance. Changed deprec…
…ated $HTTP_XXX_VARS to their $_XXX equivalent
19b4114
@acidvertigo acidvertigo Changes $PHP_SELF deprecated to $_SERVER['PHP_SELF'] dcf3e6a
@acidvertigo acidvertigo Precount for loops d7d15ab
@acidvertigo acidvertigo Change while with foreach as is faster 0edfe24
@acidvertigo acidvertigo Change while with foreach for performance. 351993c
@acidvertigo acidvertigo change while with foreach loop da924ce
@acidvertigo acidvertigo remove deprecated $HTTP_XXX_VARS with $_XXX equivalent f21c719
@acidvertigo acidvertigo Cahange intval with faster (int) operator 4f4e7b2
@acidvertigo acidvertigo Patch for bxgallery to work with jquery 1.6.x. Title "undefined" issue 9e3b29e
@acidvertigo acidvertigo Patch for bxgallery to work with jquery 1.6.x. fc23d86
@acidvertigo acidvertigo Update to jquery 1.6.2 and jquery ui 1.8.15 c993737
@acidvertigo acidvertigo Update jquery 1.6.2 and jquery ui 1.8.15 for admin fdb8d38
@acidvertigo acidvertigo Update to last 960.gs system 49bfc28
@acidvertigo acidvertigo Precount $category_links and $column_list for performance 4d754cf
@acidvertigo acidvertigo Fully w3c validated CSS stylesheet 66283f3
@acidvertigo acidvertigo Merge remote-tracking branch 'origin/patch-1' fe915c6
@acidvertigo acidvertigo revert to old stylesheet file d34b43e
@markkevans @acidvertigo markkevans Remove hardcoded text for "or" and "remove" so they can be translated…
…. Fixed issues #332 and #204
72db666
unknown Removed reset array pointer as foreach does not need it anymore. 7dbcdd2
unknown Change to deprecated $HTTP_GET_VARS and $HTTP_POST_VARS to they $_GET…
… and $_POST alternatives
a13c766
unknown Change the deprecated $HTTP_XXX_VARS to super global ones $_XXX e9f8cbd
unknown Precount in for loops for better performance removed deprecated HTTP_…
…ACCEPT LANGUAGE
3b3c151
unknown Change the deprecated $HTTP_XXX_VARS to super global ones $_XXX c54aa28
unknown Change the deprecated $HTTP_XXX_VARS to super global ones $_XXX catal…
…og side
f70eb51
unknown precount sizeof for performance 6d0e1de
unknown Removed reset pointer array as not needed for foreach 3682d13
unknown Removed reset pointer array as not needed for foreach 7522252
unknown Precount sizeof for performance 3f0eb75
unknown removed reset function as not needed by foreach. Precount for perform…
…ance
1f200da
unknown Precount for performance 32ee1a2
unknown Precount for performance sooo many..... ad509b6
unknown Point to correct jquery 1.8.15 ui stylesheet in admin 5f6c456
unknown If product not found send 404 header error to avoid duplicate content 95d9e42
unknown REmoved reset pointer array as foreach does not need it aedbeb3
unknown Pointing to minified version of css 960.gs file cecf649
unknown Replace deprecated $HTTP_XXX_VARS to superglobal b850dbc
@markkevans @acidvertigo markkevans Replace & with & to fix XHTML validation issue on shipping page. …
…Fixes issue #140
c1239ff
@markkevans @acidvertigo markkevans Close <a> tag properly. Fixes issue #223 015812e
unknown Removed deprecated $SERVER_HTTP_VARS 3e58696
unknown Merge branch 'master' of https://github.com/acidvertigo/oscommerce2 666c164
unknown Removed superglobal values to global declaration as they not need it. dbef0c5
unknown Change getenv to $_server function 7e7ef98
unknown Precount for performance a3ee5e9
unknown Change $PHP_SELF to $_SERVER['PHP_SELF']; faa7296
unknown Typo 7adafb9
unknown Change while loop with foreach for performance 82042f9
unknown Change to superglobal values and foreach vs while for performance 14f4d7c
unknown error typo d64571e
unknown Replaced deprecated $HTTP_XXX_VARS with superglobal ones ba4fba3
unknown Improced performance in database changing while loops with foreach 0adc0cf
unknown Faster cache function (json_encode is faster than serialize) and smal…
…ler cache files (gzipped)
a67def3
unknown fix 0379b8c
unknown Fix #2 886b3e3
@acidvertigo acidvertigo Pre-count for better performance. 3167353
@acidvertigo acidvertigo Removed deprecated $HTTP_ACCEPT_ENCODING 773e102
@acidvertigo acidvertigo removing deprecated $HTTP_ACCEPT_ENCODING 490a071
@acidvertigo acidvertigo merge 7f57a7b
@acidvertigo acidvertigo Change to superglobal variables fd54577
@acidvertigo acidvertigo Delete global redeclaration for superglobal $_GET, $_POST precount fo…
…r better performance.
5453045
@acidvertigo acidvertigo Removed deprecated code and inserting precount and foreach loops for …
…performance.
e12413e
@acidvertigo acidvertigo FIX reset pointer array not needed by foreach d29c1b5
@acidvertigo acidvertigo Removed deprecated code, improved performance with precount in loops 2b192ee
@acidvertigo acidvertigo Using jquery ui icons instead of images for better performance b7b732c
@acidvertigo acidvertigo Change while loops with foreach for performance dd29f89
@acidvertigo acidvertigo Removed deprecated code 924b3c4
@acidvertigo acidvertigo Change while loops with foreach for performance d36743e
@acidvertigo acidvertigo removed as $_SERVER is superglobal dda0bcc
@acidvertigo acidvertigo removed deprecated $HTTP_XXX_VARS 5ecd59b
@acidvertigo acidvertigo Removed global declaration of superglobal variables 7a42f90
@acidvertigo acidvertigo Removed deprecated code, precount and foreach loops for performance. 270433c
@acidvertigo acidvertigo Removed deprecated code, added foreach and precount sizeof loops for …
…performance.
0fa34cd
@acidvertigo acidvertigo Update jquery flot to latest version 0.7 760230f
@acidvertigo acidvertigo Removed urldecode as $_GET is already encoded 7cf7e9c
@acidvertigo acidvertigo Removed deprecated code c9da0bd
@acidvertigo acidvertigo Removed deprecated code and iproved performance with precount. Needs …
…testing on payment platform
d3908ff
@acidvertigo acidvertigo Removed deprecated code and improved performance with foreach loops (…
…needs testing on payment platform)
26a13b4
@acidvertigo acidvertigo Improved performance with foreach 0ad919f
@acidvertigo acidvertigo Removed deprecated code 133697e
@acidvertigo acidvertigo Improved performance with precount and foreach instead of while loops bcba8f0
@acidvertigo acidvertigo Resolve issue if $_SERVER['PHP_SELF'] is not set on server environment. 34d78fc
@acidvertigo acidvertigo Better fix for empty $_SERVER['PHP_SELF'] 75d30c7
@acidvertigo acidvertigo Using isset instead of tep_not_null function for performance bf3bf04
@acidvertigo acidvertigo UNDO 775b356
@acidvertigo acidvertigo UNDO 6e05958
@acidvertigo acidvertigo UNDO 068897d
@acidvertigo acidvertigo UNDO 48749f1
@acidvertigo acidvertigo REDO 5fb929e
@acidvertigo acidvertigo Removed compatility refererence to old php versions 856301e
@acidvertigo acidvertigo Removing compatibility function as it supports TOO old php code 8af19d9
@acidvertigo acidvertigo Removing old support for php 4.2 (since 2003) 3aa4a76
@acidvertigo acidvertigo Retrieving old link validation method 068cf90
@acidvertigo acidvertigo Magic quotes function removed ad766f1
@acidvertigo acidvertigo Precount sizeof for performance change getenv to superglobal $_ENV 9afe4c6
@acidvertigo acidvertigo Some performance improvement 92600b5
@acidvertigo acidvertigo changing getenv to $_ENV superglobal 03f4386

acidvertigo and others added some commits Sep 5, 2011

@acidvertigo acidvertigo Edited .project via GitHub a758150
@acidvertigo acidvertigo restore .project file 1c8dc3e
@acidvertigo acidvertigo Removing superflue </div> on breadcrumb 3578a07
@acidvertigo acidvertigo superglobal fix for issue #245 44e0523
@acidvertigo acidvertigo REapply changes as upload imageg functionality doesn't work 6a5e987
@acidvertigo acidvertigo Retrieving compatibility function for compatility 65fb02a
@acidvertigo acidvertigo Remove compatibility from catalog side 24c2598
@acidvertigo acidvertigo Update to jquery 1.6.3 455f75b
@acidvertigo acidvertigo Update doctype to <!DOCTYPE html> 42d26d2
@acidvertigo acidvertigo Update to jquery 1.6.4 0ba3d66
@markkevans @acidvertigo markkevans Revert "Use the local spinner.gif rather than rely on an external sit…
…e. Fixes issue #168"

This reverts commit 7209139.
ea0c7eb
@acidvertigo acidvertigo Upgrade 960.gs to latest version d861832
unknown Update 960.gs to latest version 4b112ab
@acidvertigo acidvertigo Remove deprecated $HTTP_POST_VARS a27a441
@acidvertigo acidvertigo push local readme bd53bdc
@acidvertigo acidvertigo Update to jquery 1.7 #oscommerce a35a36c
@acidvertigo acidvertigo Updated spider txt file. Taken From http://addons.oscommerce.com/info… f8dc4ce
unknown Added link to the original addon 8fdf0d0
@acidvertigo acidvertigo Converted line delimiters from windows to Unix style 343e6a9
@acidvertigo acidvertigo Merge branch 'master' of https://github.com/acidvertigo/oscommerce2 6048608
unknown Faster HTTPS check 85042aa
@acidvertigo acidvertigo Merge branch 'master' of https://github.com/acidvertigo/oscommerce2 b974014
@acidvertigo acidvertigo Send width and hieght value instead of 'null' for the product image 47d5f5f
@acidvertigo acidvertigo even faster image calculate size #oscommerce 72883b7
@acidvertigo acidvertigo giving only image width parameter to avoid image distortion #oscommerce 54f0a8f
@acidvertigo acidvertigo Upgrade to jquery 1.7.1 #oscommerce 19d7a9b
unknown Prevent duplicate content if in the url is given the wrong ?language=…
… parameter #oscommerce
6e8dd30
@acidvertigo acidvertigo Using the default tep_exit(); function 18481dc
unknown Using file_get_contents to read the cache file for better performance 496d5e6
unknown Check if cache file exists and unset vars to free memory adddc10
unknown Revert changes, does not work 2d68568
@acidvertigo acidvertigo Converting linefeeds to UNIX style. Converted TAB to spaces for code …
…consistency
9baa0e4
@acidvertigo acidvertigo Fix the wrong jquery call on template top a78bbbc
@acidvertigo acidvertigo fix changes on cache class b406f1e
@acidvertigo acidvertigo Fix icon alignment 62cc8fc
@acidvertigo acidvertigo Fix alignment f83b983
unknown Reuploading missed images 3a6cd27
@acidvertigo acidvertigo Change charset to UTF-8 d86c898
@acidvertigo acidvertigo Change to lowercase 3b86649
@acidvertigo acidvertigo UTF-8 converted file ff042a1
@acidvertigo acidvertigo Convert to UTF-8 4332ad8
@acidvertigo acidvertigo Encoded characters conversion 10efb0c
@acidvertigo acidvertigo Remove deprecated session code (taken from oscparky) 78de73a
unknown Reaploading file converted in UTF-8 without BOM 911e179
unknown Converted in UTF-8 without BOM 51c5baa
unknown Converted in UTF- 8 without BOM f2d059e
unknown File ceonverted to UTF-8 without BOM b994a7d
unknown Convert to UTf-8 without BOM ec7d3c8
unknown UTF-8 (BOM) <---> to Tuf-8 without BOM 3d69e9f
@acidvertigo acidvertigo Removed deprecate HTTP_XXX_VARS, precounting loops and foreach instea…
…d of while for performance on payment modules
4dba6f1
@acidvertigo acidvertigo Removed deprecate HTTP_XXX_VARS, precounting loops and foreach instea…
…d of while for performance on payment modules
5039471
@acidvertigo acidvertigo foreach loop instead of while f7a46fa
@acidvertigo acidvertigo Removed deprecate HTTP_XXX_VARS, precounting loops and foreach instea…
…d of while for performance on payment modules
0b519cc
@acidvertigo acidvertigo Change while with foreach loop e8ce543
@acidvertigo acidvertigo Fix language.php error 2185f29
@acidvertigo acidvertigo Cleaning code f1f6e4c
@acidvertigo acidvertigo Converting to UTF-8 currency symbols 4827523
@acidvertigo acidvertigo remove deprecated $HTTP_XXX_VARS 70f2b19
@acidvertigo acidvertigo UTF-8 encoding dc5eb2a
@acidvertigo acidvertigo still utf-8 encoding 4ffb078
@acidvertigo acidvertigo Fix UTF-8 encoding dfcbed5
unknown REmove deprecated HTTP_XXX_VARS 3851337
unknown Convert to UTF-8 538e2dd
unknown Fix f5982cc
unknown Removing Unwanted spaces on third line a443b0c
@acidvertigo acidvertigo foreach and precount loops for performance 52c72f1
@acidvertigo acidvertigo Removiing reset pointer 'cause is not needed from foreach anymore 87bd156
@acidvertigo acidvertigo change while loop with foreach feb8fc4
@acidvertigo acidvertigo Change while loops with foreach for performance a6b3cd9
@acidvertigo acidvertigo Change while loop with foreach for performance b183958
@acidvertigo acidvertigo replace deprecated $HTTP_SERVER_VARS #oscommerce 79b0252
@acidvertigo acidvertigo precount sizeof for performance d145710
@acidvertigo acidvertigo removing deprecated code 26f1f81
@acidvertigo acidvertigo Remove compatibility.php from project d73376b
@acidvertigo acidvertigo Precount and foreach loops for performance 8b31018
unknown Upgrade to jquery UI 1.8.17 #oscommerce ae33f9f
@acidvertigo acidvertigo Change while with foreach loop ab406eb
@acidvertigo acidvertigo Change $PHP_SELF to $_SERVER['PHP_SELF'] #oscommerce 788cb99
@acidvertigo acidvertigo Change $PHP_SELF to $_SERVER['PHP_SELF'] 773bfbc
@acidvertigo acidvertigo Precount Loops #oscommerce bc41430
@tgely @acidvertigo tgely Revert "Revert "Use the local spinner.gif rather than rely on an exte…
…rnal site. Fixes issue #168""

This reverts commit 5bb18ec.
f780f74
@tgely @acidvertigo tgely Issue #405
Close all accordions when step into admin or click oscommerce logo

Signed-off-by: Gergely <t-gely@freemail.hu>
8cb66ab
@acidvertigo acidvertigo Remove duplicate entry 309fb3a
@donatj @acidvertigo donatj The Sum of all your tax rates doesn't make much sense, MAX isn't a to…
…n better, but its a little better.
949a746
@markkevans @acidvertigo markkevans Revert "Use the local spinner.gif rather than rely on an external sit…
…e. Fixes issue #168"

This reverts commit 7209139.
f0b9d23
@markkevans @acidvertigo markkevans Remove unused javascript function. Fixes issue #183 and #184 a0ae703
@acidvertigo acidvertigo faster fetching associative array aa2903a
@acidvertigo acidvertigo Faster mysql_fetch_assoc also for admin 4dddbd6
@haraldpdl @acidvertigo haraldpdl Seeding is automatically performed on PHP 4.2.0 1ca04a3
@acidvertigo acidvertigo Upgrade to jquery 1.7.2 4af5f15
@acidvertigo acidvertigo Upgrade to jqeury ui 1.8.18 085aef1
@acidvertigo acidvertigo Change is_array to faster isset function 3b63efb
@acidvertigo acidvertigo Fix and better check fae6504
@acidvertigo acidvertigo Add httponly parameter to setcookie function for better xss attack pr…
…otection
7f9ffb9
@acidvertigo acidvertigo Remove deprecated PHP_SELF 7a7f7cb
@acidvertigo acidvertigo retrieving is_array 07bd968
@acidvertigo acidvertigo Fix prop statement to resolve "undefined" title 4125363
@acidvertigo acidvertigo Sanitize from parenthesis and other uncommon characters the search st…
…ring.
e4b43dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment