码迷,mamicode.com
首页 >  
搜索关键字:sort order by 优化    ( 73021个结果
蚂蚁变大象:浅谈常规网站是如何从小变大的(六)(转)
原文:http://blog.sina.com.cn/s/blog_6203dcd60100xvky.html 【第十阶段 : 数据存储优化】 在前面的阶段中,我们都使用数据库作为默认的存储引擎,很少谈论关于关于数据存储的话题。但是,数据的存储却是我们现在众多大型网站面临的最核心的问题。现在...
分类:Web程序   时间:2014-05-01 08:07:06    阅读次数:487
蚂蚁变大象:浅谈常规网站是如何从小变大的(二)(转)
原文:http://blog.sina.com.cn/s/blog_6203dcd60100xokd.html 【第四阶段 : 第一次服务多机化】 当IO性能得到解决以后,我们可能就会面临CPU瓶颈,即程序处理不过来了。那这个时候,最好的方式,就是优化程序。从整体架构和具体业务逻辑上去分析并...
分类:Web程序   时间:2014-05-01 07:56:48    阅读次数:503
蚂蚁变大象:浅谈常规网站是如何从小变大的(七)(转)
原文:http://blog.sina.com.cn/s/blog_6203dcd60100xyad.html 【阶段性小结】 经过了上述的架构扩展和优化以后,我们的系统无论是从前端接入,还是后端存储都较最初的阶段有了质的变化。这样的架构足以支撑起10亿级别的流量和10亿级别的数据量。我们具体的.....
分类:Web程序   时间:2014-05-01 07:36:47    阅读次数:336
全排列
#include#include#includeusing namespace std;int main(){ int n,i; char a[100000]; cin>>a; sort(a,a+strlen(a)); do{ cout<<a<<endl; }while(next_permut...
分类:其他好文   时间:2014-05-01 06:20:37    阅读次数:368
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
Object layout in C++ and access control
The variables are guaranteed to be laid out contiguously, as in C. However, the access blocks may not appear in the object in the order that you decla...
分类:数据库   时间:2014-05-01 04:11:22    阅读次数:543
性能优化
这几天着手解决程序的性能优化。什么是系统性能,包括什么,就不说了,放google搜一下就有了。找到了酷壳里的两篇文章《代码优化概要》、《性能调优攻略》以及阿姆达尔定律,有几点体会:1.阿姆达尔定律是说对某一个模块的改进对系统性能的优化程度,取决于该模块的调用频率,或者该模块的执行时间占程序总执行的比...
分类:其他好文   时间:2014-05-01 04:03:07    阅读次数:337
快速排序
package algorithm.sort;public class QuickSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); ...
分类:其他好文   时间:2014-05-01 03:33:20    阅读次数:330
计数排序
package algorithm.sort;public class CountingSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; int[] ...
分类:其他好文   时间:2014-05-01 03:25:05    阅读次数:252
堆排序
package algorithm.sort;public class HeapSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); p...
分类:其他好文   时间:2014-05-01 03:24:04    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!