Time |
Nick |
Message |
00:07 |
|
v-rob joined #minetest-dev |
01:18 |
|
tekakutli joined #minetest-dev |
01:33 |
|
v-rob joined #minetest-dev |
02:09 |
|
v-rob joined #minetest-dev |
02:23 |
|
asdflkj_sh joined #minetest-dev |
02:29 |
|
queria joined #minetest-dev |
02:33 |
|
queria joined #minetest-dev |
03:41 |
|
v-rob joined #minetest-dev |
03:45 |
|
specing_ joined #minetest-dev |
04:00 |
|
MTDiscord joined #minetest-dev |
05:04 |
|
v-rob joined #minetest-dev |
06:31 |
|
v-rob joined #minetest-dev |
06:39 |
|
v-rob joined #minetest-dev |
08:05 |
|
hendursa1 joined #minetest-dev |
08:21 |
|
tekakutli joined #minetest-dev |
09:03 |
|
olliy joined #minetest-dev |
09:56 |
|
Fixer joined #minetest-dev |
10:11 |
MTDiscord |
<luatic> sfan5: Have you considered the performance implications of https://github.com/minetest/irrlicht/commit/81bae5b717a79fc2b05a09f760afc7b44da98487 ? It looks like those "questionable" bit hacks were used to improve performance by getting rid of expensive branching. |
10:13 |
MTDiscord |
<Sublayer plank> improving performance by making it return wrong at times doesn't feel like a smart way of doing things |
10:15 |
sfan5 |
yes and the result I arrived at is "the compiler should optimize it somehow" |
10:16 |
sfan5 |
perhaps using a CMOV instructions or by applying a (this time correct) version of the bit hacks itself |
11:02 |
MTDiscord |
<luatic> Well, IIRC ternaries don't use branching, and simple if-return things might be optimized to ternaries. |
11:16 |
|
calcul0n__ joined #minetest-dev |
11:32 |
pgimeno |
compilers know how to optimize return a < b ? a : b; and similar |
11:32 |
pgimeno |
if the boolean operation is better, they will use that |
12:02 |
|
Noisytoot joined #minetest-dev |
13:24 |
|
proller joined #minetest-dev |
13:30 |
pgimeno |
this proves that the compiler knows about it: https://godbolt.org/z/vo4Ma676x |
13:31 |
pgimeno |
in x86-64, ARM etc. it uses conditional move (cmov / movlt) |
13:34 |
|
calcul0n__ joined #minetest-dev |
14:23 |
|
fluxionary joined #minetest-dev |
14:47 |
|
appguru joined #minetest-dev |
15:45 |
|
specing_ joined #minetest-dev |
15:51 |
|
Extex joined #minetest-dev |
16:41 |
|
Fixer_ joined #minetest-dev |
17:06 |
|
v-rob joined #minetest-dev |
17:25 |
|
v-rob joined #minetest-dev |
17:50 |
|
Fixer joined #minetest-dev |
18:59 |
|
Wuzzy joined #minetest-dev |
19:16 |
|
v-rob joined #minetest-dev |
19:27 |
|
tekakutli joined #minetest-dev |
19:37 |
|
v-rob joined #minetest-dev |
20:09 |
|
v-rob joined #minetest-dev |
20:12 |
|
v-rob joined #minetest-dev |
20:27 |
|
x2048 joined #minetest-dev |
20:54 |
|
v-rob joined #minetest-dev |
21:17 |
|
Extex joined #minetest-dev |
21:26 |
|
Extex joined #minetest-dev |
21:30 |
|
v-rob joined #minetest-dev |
22:02 |
|
Extex joined #minetest-dev |
23:10 |
|
AliasAlreadyTake joined #minetest-dev |
23:31 |
|
v-rob joined #minetest-dev |