Graham Sutherland / Polynomial on Nostr: right now it just repeatedly scans process memory, but it's super inefficient and ...
right now it just repeatedly scans process memory, but it's super inefficient and each iteration slams all 112 logical processors on this machine to 100% for about two seconds per scan.
I can speed it up a ton by probing process allocs with VirtualQueryEx before ReadProcessMemory so I can optimise the copy operation instead of just blindly doing one page at a time.
Published at
2024-11-30 19:49:08Event JSON
{
"id": "623bd9e9d48f5a306ba5802418cedb800f3c443bf9c65a10780c260f40a39971",
"pubkey": "72025f2d3f9600cb4f992f4d20f3efc3f0bf6a650e5272ad7a920d716a648c81",
"created_at": 1732996148,
"kind": 1,
"tags": [
[
"e",
"de331c089b136a3dcaa36752c1a6b46633f03556dc448c2359d58f9719484a68",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://chaos.social/users/gsuberland/statuses/113573635604206450",
"activitypub"
]
],
"content": "right now it just repeatedly scans process memory, but it's super inefficient and each iteration slams all 112 logical processors on this machine to 100% for about two seconds per scan.\n\nI can speed it up a ton by probing process allocs with VirtualQueryEx before ReadProcessMemory so I can optimise the copy operation instead of just blindly doing one page at a time.",
"sig": "bee4a5b3de3828ab356fc742505a73131f3b52f6c47103f8d570378887a33c733a25c13642ef6b071ca7f6448450363a10d4a1ea589ebd5cea5971a0be00305c"
}