WUtil: Rewrote 'wusergnusteppath' to be more efficient
commit033e3eaa5417cdbae232d91a8b0835b5339ecb16
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 4 May 2013 13:43:31 +0000 (4 15:43 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 4 May 2013 15:25:44 +0000 (4 16:25 +0100)
tree9241e48d06e2bc3cc608df40f7da7c2781e59f54
parenta18fd7cd69b880969a40c0efa4f11719b31e1190
WUtil: Rewrote 'wusergnusteppath' to be more efficient

The first optimisation is to compute only once the path, and then
always re-use the value which did not change anyway.
The second optimisation is to avoid a lot of excessive function
calls, including alloc+free that are not necessary and participate
in memory fragmentation.
WINGs/userdefaults.c