summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-07 00:04:28 +0200
committerMarek Olšák <[email protected]>2016-10-31 11:53:38 +0100
commit330482177c45dceb71e5787c1a7e7fc87308c144 (patch)
treeee5250aebe4942d0cfde5cc77272ebda8a9073f6 /docs
parentcb0879985a40bcde1516e5341c5a3e5ea0968b87 (diff)
ralloc: don't memset ralloc_header, clear it manually
time GALLIUM_NOOP=1 ./run shaders/private/alien_isolation/ >/dev/null Before (2 takes): real 0m8.734s 0m8.773s user 0m34.232s 0m34.348s sys 0m0.084s 0m0.056s After (2 takes): real 0m8.448s 0m8.463s user 0m33.104s 0m33.160s sys 0m0.088s 0m0.076s Average change in "real" time spent: -3.4% calloc should only do 2 things compared to malloc: - check for overflow of "n * size" - call memset I'm not sure if that explains the difference. v2: clear "parent" and "next" in the caller of add_child. Reviewed-by: Edward O'Callaghan <[email protected]> (v1) Tested-by: Edmondo Tommasina <[email protected]> (v1) Reviewed-by: Nicolai Hähnle <[email protected]> (v1)
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions