and i am grateful enough with how it ended up.

Yonle

npub1x3azxuysp5vmfer4vgs4jn5tmfcx4ew8sh0qnev7gczljxsr7jwqa3g4el

hex

add3a76eaa9ec2694fe4bda516ce607fa606bec9b2634367833c6b4c6b131138

nevent

nevent1qqs2m5a8d64fasnffljtmfgkees8lfsxhmymyc6rv7pnc66vdvf3zwqprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgsrg73rwzgq6xd5u36kyg2ef69a5ur2uhrcthsfuk0yvp0ergplf8q2fy5p9

Kind-1 (TextNote)

2025-12-16T06:01:00Z

↳ 回复 Yonle (npub1x3azxuysp5vmfer4vgs4jn5tmfcx4ew8sh0qnev7gczljxsr7jwqa3g4el)

C is way to the bottom more complicated than it sounded like. I got no time to write all of the memory control logics by myself as i got very limited...

and i am grateful enough with how it ended up.

In nodejs version, under the same load would take you at around 700 MB of RAM, while in go version would took just around 325 MB of RAM with barely any CPU throttle like it did in nodejs version.

I tried tweaking the nodejs base MANY times with MANY KIND OF TRICKS but NONE works perfectly. I tried running it with bun at the time but it kept crashing.

原始 JSON

{
  "kind": 1,
  "id": "add3a76eaa9ec2694fe4bda516ce607fa606bec9b2634367833c6b4c6b131138",
  "pubkey": "347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c",
  "created_at": 1765864860,
  "tags": [
    [
      "alt",
      "A short note: and i am grateful enough with how it ended up.\n\nIn..."
    ],
    [
      "e",
      "29f0016b0e8efda35464abea1061ab89b8ce6d65dca0379a87ebd6d091ad80b1",
      "wss://nos.lol/",
      "root",
      "347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c"
    ],
    [
      "e",
      "f6b713034500f70c43593e5c24953cd64334533a5484f0a8221b23210569a9e9",
      "wss://nrelay.c-stellar.net/",
      "",
      "347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c"
    ],
    [
      "e",
      "cda9b7ef9e4eb9d5c18d620f2b3db0b2f239dc6ee1140238e63ff80c7f8ecb5a",
      "wss://ditto.pub/relay",
      "",
      "4ae515ec75aada2816397dda84cc63c2ca1e2b27bf49f173abda9764b9bde35b"
    ],
    [
      "e",
      "a4c0b177eb22233336db3a5035e354056c730ca2f81f3401f7c822d16252d1db",
      "wss://nrelay.c-stellar.net/",
      "reply",
      "347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c"
    ],
    [
      "p",
      "347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c",
      "wss://nos.lol/"
    ],
    [
      "p",
      "4ae515ec75aada2816397dda84cc63c2ca1e2b27bf49f173abda9764b9bde35b",
      "wss://ditto.pub/relay"
    ]
  ],
  "content": "and i am grateful enough with how it ended up.\n\nIn nodejs version, under the same load would take you at around 700 MB of RAM, while in go version would took just around 325 MB of RAM with barely any CPU throttle like it did in nodejs version.\n\nI tried tweaking the nodejs base MANY times with MANY KIND OF TRICKS but NONE works perfectly. I tried running it with bun at the time but it kept crashing.",
  "sig": "83c839755153fe4f7a29f4abadbd4122b21b05e01a5b5353b490dd2a53cbf42b55776f1c0e29fbbec70c97fb286d341e64d5db938b1dfd4ab57d5c3812acfd60"
}