mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Debugger: Use fragments for long chunks.
Gets it on the wire faster. More importantly, this allows us to usually avoid rampant memory allocation even for large responses.
This commit is contained in:
1 parent
e746a2d106
commit
ccea863f00
7 files changed
+36
-3
No files matched your search
@@ -290,6 +290,10 @@ void WebSocketDisasmState::Disasm(DebuggerRequest &req) {
|
||||
disasm_.getLine(addr, displaySymbols, line);
|
||||
WriteDisasmLine(json, line);
|
||||
addr += line.totalSize;
|
||||
|
||||
// These are pretty long, so let's grease the wheels a bit.
|
||||
if (i % 50 == 0)
|
||||
req.Flush();
|
||||
}
|
||||
json.pop();
|
||||
|
||||
|
||||
Reference in new issue
Block a user