我猜想,该应用程序中意外出现的内存漏洞是由那些没有真正理解别人开发的代码的程序员造成的。
The memory leaks that cropped up within the application were caused, I suspect, by programmers who did not truly understand the code that had been developed elsewhere.
由于Perl没有内存分配问题,所以对我来说缺陷的最主要来源就是追踪计数器变量的错误(错误的初始化,错误的增量,或者错误的边界)。
Since Perl doesn't have memory allocation issues, the biggest source of bugs for me has been the improper tracking of counter variables (wrong initialization, wrong increments, or wrong bounds).
最后,我无法捕捉任何在池塘里的鱼,但这个有趣和内存,我一直从来没有在我的记忆中留下的所有时间。
Eventually I couldn't catch any fish in the pond, but this interesting and memory I had kept all the time never left in my memory.
在接下来的几个帖子中,我将覆盖内存,着眼实际问题,但没有回避内部。
In the next few posts I'll cover memory with an eye towards practical aspects, but without shying away from internals.
我想知道我还有另一个办法把这种双重转换成一个字符串或字符数组,等等,没有内存分配和收集每次循环运行。
I'm wondering if there is another way I can convert this double into a string or char array, etc, without allocating and collecting memory each time the loop runs.
分配新的内存时,我发现我没有足够的空间,我开始一个GC。
When allocating new memory and I see that I don't have enough space, I start a GC.
我用一个hashet检查如果字符串已经知道,但现在我达到了100 000 000串,我没有足够的内存和进程崩溃。
I'm using a hashet to check if the string is already know, but now I reached 100 000 000 strings, I do not have enough RAM and the process crash.
我用一个hashet检查如果字符串已经知道,但现在我达到了100 000 000串,我没有足够的内存和进程崩溃。
I'm using a hashet to check if the string is already know, but now I reached 100 000 000 strings, I do not have enough RAM and the process crash.
应用推荐