Memory Usage Options

GenPatch assumes by default that it is allowed to use the optimal amount of memory for its task. Even though GenPatch uses not much memory compared to the difficult task to created efficient patches in fastest speed, this is still around 3 times the file size it works on. This can be pretty much depending on your file sizes from 50 MB and higher. When GenPatch cannot allocate enough memory it will fallback to alternate methods that use less memory, but are not as efficient. If you don't want this to happen, be sure to provide enough virtual memory.

But you can reduce the memory usage by limiting the total amount GenPatch will try to allocate. Using option "-m=value" you might reduce the memory usage drastically. The default is "-memory=0" which means that no memory limitation is in effect. The minimum value respected is "-memory=5m" which we regard as a reasonable minimum. In most cases you will not even note the limitation, since with a 1,4 MB file as your largest file in an update, you will not stretch this limit.

We recommend not to use this option unless you really run into problems, normally you won't at all.