Alex Gleason on Nostr: >Can you do a cpuprofile? >Sure, I found that CPU is wasted in opensearch client ...
>Can you do a cpuprofile?
>Sure, I found that CPU is wasted in opensearch client because it doesn't use fetch
>Should we rewrite it?
>Sure, I rewrote the entire opensearch client (just the methods we use) with native fetch. Let me do another cpuprofile ... now the overhead is completely gone!
Published at
2026-03-29 18:06:04 UTCEvent JSON
{
"id": "304e7029f1fe7c4d8f477ce43f32461be8efb8dca51db16d674de283edc42d01",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1774807564,
"kind": 1,
"tags": [
[
"client",
"Ditto"
]
],
"content": "\u003eCan you do a cpuprofile?\n\n\u003eSure, I found that CPU is wasted in opensearch client because it doesn't use fetch\n\n\u003eShould we rewrite it?\n\n\u003eSure, I rewrote the entire opensearch client (just the methods we use) with native fetch. Let me do another cpuprofile ... now the overhead is completely gone!",
"sig": "2ced69da21f6b0b28a6b6d2a75a9a1d86659fc5c18b48883bd05df1c6cc1185e984c784c28283cc0e3594f42ddcae0b829b0052a69f74a594054f7f232af5772"
}