forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3438c98
committed
Use plain memset() in numeric.c, not MemSet and friends.
This essentially reverts a micro-optimization I made years ago,as part of the much larger commitd72f6c7. It's doubtfulthat there was any hard evidence for it being helpful even then,and the case is even more dubious now that modern compilersare so much smarter about inlining memset().The proximate reason for undoing it is to get rid of the type punninginherent in MemSet, for fear that that may cause problems now thatwe're applying additional optimization switches to numeric.c.At the very least this'll silence some warnings from a few oldbuildfarm animals.(It's probably past time for another look at whether MemSet is stillworth anything at all, but I do not propose to tackle that questionright now.)Discussion:https://postgr.es/m/CAJ3gD9evtA_vBo+WMYMyT-u=keHX7-r8p2w7OSRfXf42LTwCZQ@mail.gmail.com1 parent728d4bc commit3438c98
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
495 |
| - | |
| 495 | + | |
496 | 496 |
| |
497 | 497 |
| |
498 | 498 |
| |
|
0 commit comments
Comments
(0)