improve n + 1 cracking to skip dict/prior length

This commit is contained in:
Jack Kingsman
2026-01-08 21:33:18 -08:00
parent eea782acc9
commit e497d3dceb
3 changed files with 18 additions and 15 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RemoteTerm for MeshCore</title>
<script type="module" crossorigin src="/assets/index-FM2HgcXA.js"></script>
<script type="module" crossorigin src="/assets/index-DycUwj3W.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C3_XTTUI.css">
</head>
<body>
+4 -1
View File
@@ -216,7 +216,8 @@ export function CrackerPanel({ packets, channels, onChannelCreate, onRunningChan
isProcessingRef.current = true;
const currentMaxLength = maxLengthRef.current;
const targetLength = nextItem.lastAttemptLength > 0
const isRetry = nextItem.lastAttemptLength > 0;
const targetLength = isRetry
? nextItem.lastAttemptLength + 1
: currentMaxLength;
@@ -228,6 +229,8 @@ export function CrackerPanel({ packets, channels, onChannelCreate, onRunningChan
useTimestampFilter: true,
useUtf8Filter: true,
...(turboModeRef.current && { gpuDispatchMs: 10000 }),
// For retries, skip dictionary and shorter lengths - we already checked those
...(isRetry && { useDictionary: false, startingLength: targetLength }),
},
(prog) => {
setProgress(prog);