<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ksperfect的专栏]]></title><description><![CDATA[做优秀的程序员]]></description><link>https://blog.csdn.net/ksperfect</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ksperfect]]></copyright><item><title><![CDATA[一个特别好的boost学习资料]]></title><link>https://blog.csdn.net/ksperfect/article/details/45668351</link><guid>https://blog.csdn.net/ksperfect/article/details/45668351</guid><author>ksperfect</author><pubDate>Tue, 12 May 2015 13:33:04 +0800</pubDate><description><![CDATA[﻿﻿
http://zh.highscore.de/cpp/boost/]]></description><category></category></item><item><title><![CDATA[std::auto_ptr的使用方法]]></title><link>https://blog.csdn.net/ksperfect/article/details/45668241</link><guid>https://blog.csdn.net/ksperfect/article/details/45668241</guid><author>ksperfect</author><pubDate>Tue, 12 May 2015 13:20:40 +0800</pubDate><description><![CDATA[﻿﻿
 
项目管理之商务
 
gettid和pthread_self的用法






正确使用std::auto_ptr  
2012-05-21 14:47:41|  分类：

C/C++ |  标签：
|举报
|字号大中小 订阅




 

  
  
 



用微信  “扫一扫”
将文章分享到朋友圈。

  


]]></description><category></category></item><item><title><![CDATA[boost:unordered_map和std::map的使用详解和性能比较]]></title><link>https://blog.csdn.net/ksperfect/article/details/45667291</link><guid>https://blog.csdn.net/ksperfect/article/details/45667291</guid><author>ksperfect</author><pubDate>Tue, 12 May 2015 11:29:08 +0800</pubDate><description><![CDATA[﻿﻿
今天看到 boost::unordered_map， 它与 stl::map的区别就是，stl::map是按照operator<比较判断元素是否相同，以及比较元素的大小，然后选择合适的位置插入到树中。所以，如果对map进行遍历（中序遍历）的话，输出的结果是有序的。顺序就是按照operator<
 定义的大小排序。
而boost::unordered_map是计算元素的Hash值，根据H]]></description><category></category></item><item><title><![CDATA[map和hash_map的比较]]></title><link>https://blog.csdn.net/ksperfect/article/details/42678769</link><guid>https://blog.csdn.net/ksperfect/article/details/42678769</guid><author>ksperfect</author><pubDate>Tue, 13 Jan 2015 16:54:29 +0800</pubDate><description><![CDATA[在网上看到有关STL中hash_map的文章，以及一些其他关于STL map和hash_map的资料，总结笔记如下：
    1、STL的map底层是用红黑树实现的，查找时间复杂度是log(n)；
 
   2、STL的hash_map底层是用hash表存储的，查询时间复杂度是O(1)；
    3、什么时候用map，什么时候用hash_map？
    这个药看具体的应用，不一定常数级]]></description><category></category></item><item><title><![CDATA[std::unary_function]]></title><link>https://blog.csdn.net/ksperfect/article/details/42555997</link><guid>https://blog.csdn.net/ksperfect/article/details/42555997</guid><author>ksperfect</author><pubDate>Fri, 09 Jan 2015 15:58:59 +0800</pubDate><description><![CDATA[C++98


Unary function object base class
Note: This class has been deprecated in C++11. 
This is a base class for standard unary function objects.

Generically, function objects are instances o]]></description><category></category></item><item><title><![CDATA[Passing pointers to functions]]></title><link>https://blog.csdn.net/ksperfect/article/details/42551003</link><guid>https://blog.csdn.net/ksperfect/article/details/42551003</guid><author>ksperfect</author><pubDate>Fri, 09 Jan 2015 09:57:02 +0800</pubDate><description><![CDATA[Don’t!
▪Ownership is ambiguous
▪It implies the argument can be null
Prefer a reference if the function is only observing the argument
Use a unique_ptr or auto_ptr if you pass ownership to the fu]]></description><category></category></item><item><title><![CDATA[Use standard algorithms]]></title><link>https://blog.csdn.net/ksperfect/article/details/42550899</link><guid>https://blog.csdn.net/ksperfect/article/details/42550899</guid><author>ksperfect</author><pubDate>Fri, 09 Jan 2015 09:48:39 +0800</pubDate><description><![CDATA[Use standard algorithms
Learn them if you don’t know them
Learn to recognize them
▪Standard algorithms will decrease CO2 emissions by a factor of 42 std::string lowerPath = path; std::transform(l]]></description><category></category></item><item><title><![CDATA[Ownership]]></title><link>https://blog.csdn.net/ksperfect/article/details/42550871</link><guid>https://blog.csdn.net/ksperfect/article/details/42550871</guid><author>ksperfect</author><pubDate>Fri, 09 Jan 2015 09:47:33 +0800</pubDate><description><![CDATA[Pointers don’t model ownership at all. The ownership has to be specified with comments to avoid misuse
▪Dangling pointers, double delete and leaks are symptoms of (mis)using pointers to model ownersh]]></description><category></category></item><item><title><![CDATA[Buffers ▪Avoid allocating buffers with new/malloc. Buffers are perfectly modeled with std::vector ▪P]]></title><link>https://blog.csdn.net/ksperfect/article/details/42550803</link><guid>https://blog.csdn.net/ksperfect/article/details/42550803</guid><author>ksperfect</author><pubDate>Fri, 09 Jan 2015 09:45:04 +0800</pubDate><description><![CDATA[Buffers
▪Avoid allocating buffers with new/malloc. Buffers are perfectly modeled with std::vector
▪Prefer the stack for temp buffers, if the size is 


char* temparray = (char*)malloc(10); 
mems]]></description><category></category></item><item><title><![CDATA[sqlite3采用MD5和Aes联合加密技术]]></title><link>https://blog.csdn.net/ksperfect/article/details/7236306</link><guid>https://blog.csdn.net/ksperfect/article/details/7236306</guid><author>ksperfect</author><pubDate>Wed, 07 Jan 2015 14:39:37 +0800</pubDate><description><![CDATA[#include "aes/aes.h"
#include "md5/md5.h"
#include "src/sqlite3.c"


#define SQLITECRYPTERROR_PROVIDER "Cryptographic provider not available"

typedef unsigned char byte_t;


struct CryptBlo]]></description><category></category></item><item><title><![CDATA[FPS优化]]></title><link>https://blog.csdn.net/ksperfect/article/details/42492261</link><guid>https://blog.csdn.net/ksperfect/article/details/42492261</guid><author>ksperfect</author><pubDate>Wed, 07 Jan 2015 14:33:08 +0800</pubDate><description><![CDATA[FPS即Frame Per Second，是游戏对用户体验非常重要的一项技术指标。

目录


1 CPU/GPU2 针对CPU进行优化

2.1 瓶颈2.2 常见的优化2.3 Loading效率优化
3 GPU优化

3.1 辨别顶点着色器和像素着色器瓶颈3.2 常见顶点着色器性能问题3.3 常见像素着色器性能问题




CPU/GPU


游戏软件的结构一]]></description><category></category></item><item><title><![CDATA[IOS分辨率的修改方法]]></title><link>https://blog.csdn.net/ksperfect/article/details/42489965</link><guid>https://blog.csdn.net/ksperfect/article/details/42489965</guid><author>ksperfect</author><pubDate>Wed, 07 Jan 2015 11:39:36 +0800</pubDate><description><![CDATA[1. open terminal 
2. type: cd /Library/Preferences/SystemConfiguration press ENTER
3. type: sudo nano com.apple.boot.plist. An xml file should open in a word editor named nano. 
4. Find the line where]]></description><category></category></item><item><title><![CDATA[Ogre内存分配器分析(1)]]></title><link>https://blog.csdn.net/ksperfect/article/details/9967063</link><guid>https://blog.csdn.net/ksperfect/article/details/9967063</guid><author>ksperfect</author><pubDate>Wed, 14 Aug 2013 17:13:16 +0800</pubDate><description><![CDATA[#ifndef __AllocatedObject_H__
#define __AllocatedObject_H__
#include "OgrePrerequisites.h"  //平台定义,包含所有调试模式,引擎版本,VC++版本,常用基本类型重定义,多线程使用声明,引擎内主要类声明,Ogre内所用到的std头文件包含进来]]></description><category></category></item><item><title><![CDATA[C++内存分配操作符new(new operator),operator new,placement new详解]]></title><link>https://blog.csdn.net/ksperfect/article/details/9966169</link><guid>https://blog.csdn.net/ksperfect/article/details/9966169</guid><author>ksperfect</author><pubDate>Wed, 14 Aug 2013 16:34:49 +0800</pubDate><description><![CDATA[由于这几个操作符,特别是placement new 经常使我不知道怎么用,现在我就把它的用法记录下来.
1.new（也称作new operator)
在C++里经常这么使用:
class MyClass{};
MyClass*p = new MyClass();
这里的new在C++里是默认的关键字,它本质是一个操作符(就像+,-,*,/)
调用new操作符实际上执行以下三个步骤:]]></description><category></category></item></channel></rss>