blender/source
Germano Cavalcante 7aa31c884d Mesh: Merge by Distance: Remove unnecessary array
The `groups_map` array (which indicates the group an element belongs
to) is only intended to reduce loops when creating groups, speeding up
that part of the code.

But on the downside, it requires more memory usage, and adds one more
step to access groups (`groups_offs[groups_map[i]]` instead of just
`groups_offs[i]`).

So removing that array decreases memory usage and speeds up access in
another part of the code.

The profile showed a +6% advantage when the Weld modifier affects large
portions of the mesh.

But it also showed a loss of around -0.6% in performance for cases
where the Weld modifier affects small parts of the mesh.

The biggest benefit is to save memory and speed up some cases.
2023-07-11 00:40:08 -03:00
..
blender Mesh: Merge by Distance: Remove unnecessary array 2023-07-11 00:40:08 -03:00
creator Cleanup: CMake: Modernize bf_blenlib dependencies 2023-07-10 22:04:18 +02:00
CMakeLists.txt Cleanup: Add a copyright notice to files and use SPDX format 2023-05-31 16:19:06 +02:00