Added a map with just the zero UUID in memory

So I dont need to create a map everytime I have a orders=none
This commit is contained in:
2025-01-16 22:49:36 +01:00
parent 6bd3782e1e
commit 14ea22dad6
3 changed files with 16 additions and 7 deletions
-1
View File
@@ -329,7 +329,6 @@ fn deleteEntitiesOneFile(
return;
}) |row| {
if (!finish_writing and (filter == null or filter.?.evaluate(row))) {
// _ = sstruct.uuid_file_index.map.remove(UUID{ .bytes = row[0].UUID }); FIXME: This doesnt work in multithread because they try to remove at the same time
writer.print("{{\"{s}\"}},", .{UUID.format_bytes(row[0].UUID)}) catch |err| {
sync_context.logError("Error writting", err);
return;