1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00

performance improved

This commit is contained in:
Justin Lin
2021-04-23 07:52:38 +08:00
parent f2b69a9ce0
commit 843e03ce18

View File

@@ -16,7 +16,7 @@ function weights_of_tiles(sample) =
let(
symbols = flat(sample),
leng = len(symbols),
weights = hashmap(number_of_buckets = sqrt(leng))
weights = hashmap(number_of_buckets = leng)
)
_weights_of_tiles(weights, symbols, leng);
@@ -284,7 +284,7 @@ function compatibilities_of_tiles(sample) =
for(x = [0:width - 1])
for(c = neighbor_compatibilities(sample, x, y, width, height))
c
]);
], number_of_buckets = width * height);
function collapsed_tiles(wf) =
let(