BLI_memblock: Refactor for faster iteration and allocation
authorClément Foucault <foucault.clem@gmail.com>
Mon, 20 May 2019 22:54:03 +0000 (00:54 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 11:29:04 +0000 (13:29 +0200)
commit21dc2816d6bb0a2a85e3a208830b629eb916ded0
tree046dce1d360db51f00c6f293cd3454dcf4945622
parent657165db94f14150416c2ee2221eeeafa32603f3
BLI_memblock: Refactor for faster iteration and allocation

Remove the clear allocation flag as it has little impact since there should
be very few allocation per redraw.

Make BLI_memblock_alloc and BLI_memblock_iterstep much more cache efficient
removing them almost entirely from performance profiles.
source/blender/blenlib/BLI_memblock.h
source/blender/blenlib/intern/BLI_memblock.c
source/blender/draw/intern/draw_instance_data.c
source/blender/draw/intern/draw_manager.c