阅读背景:

我认为STL导致我的应用程序三倍的内存使用量

来源:互联网 

I am inputting a 200mb file in my application and due to a very strange reason the memory usage of my application is more than 600mb. I have tried vector and deque, as well as std::string and char * with no avail. I need the memory usage of my application to be almost the same as the file I am reading, any suggestions would be extremely helpful. Is there a bug that causes so much memory consumption? Could you pinpoint the problem or should I rewrite the whole thing?I am inputting a 200mb file in my application a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: