Skip to content

Commit

Permalink
Document InMemoryGDiffPatcher's reason for existence before I forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Jan 26, 2024
1 parent b478c51 commit 9f9af39
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package makamys.coretweaks.util;

/** nothome's GDiffPatcher is implemented in a horribly inefficient way where it
copies bytes one by one. This can be mitigated by providing a custom
SeekableSource implementation (~53% faster), but reimplementing the algorithm
from scratch using arrays is even better (~150% faster), which is what this
class does. */
public class InMemoryGDiffPatcher {
private static final int BYTE = 1, UBYTE = 2, SHORT = 3, USHORT = 4, INT = 5, UINT = 6, LONG = 7, ULONG = 8;

Expand Down

0 comments on commit 9f9af39

Please sign in to comment.