nina on Nostr: udev hwdb update too slow on musl? just prealloc more lol (this brings it from like ...
Published at
2024-06-04 11:34:44Event JSON
{
"id": "af8b8541da646af78bf5e5a76c49be3455d822328376c4ab7c1a06dd02b5628d",
"pubkey": "f3366b17f5ef004bcd8976383655d362fec5e9f8eabacb55fa5835de095066f7",
"created_at": 1717500884,
"kind": 1,
"tags": [
[
"proxy",
"https://blahaj.social/users/q66/statuses/112558137979573748",
"activitypub"
]
],
"content": "udev hwdb update too slow on musl? just prealloc more lol\n\nhttps://github.com/chimera-linux/cports/commit/a10dec76b86bcc055b73312dc6dff71439922b9a\n\n(this brings it from like uh, 20s to around 1s on my machine (more on arm sbc potatoes) because musl memcpy slow and this does *a lot* of reallocs on a buffer that ends up like 12 megabytes, but of course it's a gross workaround)",
"sig": "48e299ab9ea3cd340c6661ee85b6a9b31a0ca259a6603ba32a990075930b96565189ba5eaf13632348f03fa09811c73841bd57978a3d0daf9b86520f53683c5b"
}