core: span allocation with shared free list and geometric growth

Amp-Thread-ID: https://ampcode.com/threads/T-01a0b2dd-db32-712d-99ce-12ce4a86d979
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-09-18 05:26:26 +00:00
co-authored by heaust
parent e7546e4b78
commit dda602c4a2
7 changed files with 199 additions and 91 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ addEventListener("message", async ({ data: message }) => {
core.delete_rows(message.name);
break;
case "allocate-object":
result = JSON.parse(core.allocate_object(message.name));
result = JSON.parse(core.allocate_object(message.name, message.count ?? 1));
break;
case "delete-object":
core.delete_object(message.name, message.id);