mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 10:14:41 +02:00
performance improved
This commit is contained in:
@@ -16,7 +16,7 @@ function weights_of_tiles(sample) =
|
|||||||
let(
|
let(
|
||||||
symbols = flat(sample),
|
symbols = flat(sample),
|
||||||
leng = len(symbols),
|
leng = len(symbols),
|
||||||
weights = hashmap(number_of_buckets = sqrt(leng))
|
weights = hashmap(number_of_buckets = leng)
|
||||||
)
|
)
|
||||||
_weights_of_tiles(weights, symbols, leng);
|
_weights_of_tiles(weights, symbols, leng);
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ function compatibilities_of_tiles(sample) =
|
|||||||
for(x = [0:width - 1])
|
for(x = [0:width - 1])
|
||||||
for(c = neighbor_compatibilities(sample, x, y, width, height))
|
for(c = neighbor_compatibilities(sample, x, y, width, height))
|
||||||
c
|
c
|
||||||
]);
|
], number_of_buckets = width * height);
|
||||||
|
|
||||||
function collapsed_tiles(wf) =
|
function collapsed_tiles(wf) =
|
||||||
let(
|
let(
|
||||||
|
Reference in New Issue
Block a user