taoCMS是基于php+sqlite/mysql的国内最小(100Kb左右)的功能完善、开源免费的CMS管理系统

Python 代码性能优化技巧

Python 代码优化常见技巧代码优化能够让程序运行更快,它是在不改变程序运行结果的情况下使得程序的运行效率更高,根据 80/20 原则,实现程序的重构、优化、扩展以及文档相关的事情通常需要消耗 80% 的工作量。优化通常包含两方面的内容:减小代码的体积,提高代码的运行效率。改进算法,选择合适的数据结构一个良好的算法能够对性能起到关键作用,因此性能改进的首要点是对算法的改进。在算法的时间复杂度排序上依次是:O(1) -> O(lg n) -> O(n lg n) -> O(n^2) -> O(n^3) -> O(n^k) -> O(k^n) -> O(n!)因此如果能够在时间复杂度上对算法进行一定的改进,对性能的提高不言而喻。但对具体算法的改进不属于本文讨论的范围,读者
发布时间:2014-02-11 | 类别:技术文章 | 阅读:301342 | 评论:0 | 标签:performance performance

C++ vs. Python vs. Perl vs. PHP performance benchmark

Update: There is a part #2 of the benchmark results. This page has been translated intoSpanish by Maria Ramos.This all began as a colleague of mine stated that Python was so damn slow for maths. Which really astonished me and made me check it out, as my father told me once that he was very satisfied with Python, as it was very maths oriented.T
发布时间:2014-02-10 | 类别:技术文章 | 阅读:345797 | 评论:1 | 标签:performance performance performance performance performance

My PHP Performance Benchmarks

两个这样的测试页面:1、http://maettig.com/code/php/php-performance-benchmarks.php2、http://www.phpbench.com/Check if a String is emptyMethodUndefinedNullFalseEmpty stringString "0"String "1"Long stringSummaryIndexif (!$var)2 ms>0 ms>0 ms>0 ms>0 ms>0 ms>0 ms4 ms132if (empty($var))>0 ms1
发布时间:2012-10-19 | 类别:技术文章 | 阅读:219419 | 评论:0 | 标签:performance performance

公告

taoCMS发布taoCMS 3.0.2(最后更新21年03月15日),请大家速速升级,欢迎大家试用和提出您宝贵的意见建议。

捐助与联系

☟请使用新浪微博联系我☟

☟在github上follow我☟

标签云