Re: [GENERAL] Fastest memmove in C

2016-07-07 Thread FarjadFarid(ChkNet)
. -Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Tom Lane Sent: 07 July 2016 18:02 To: Stephen Frost Cc: Merlin Moncure ; FarjadFarid(ChkNet) ; Alvaro Herrera ; PostgreSQL General Subject: Re: [GENERAL] Fastest memmove in C Stephen

Re: [GENERAL] Fastest memmove in C

2016-07-07 Thread Tom Lane
Stephen Frost writes: > While I agree with this, I'm trying to figure out why this isn't being > incorporated into glibc instead..? Indeed --- it seems far more useful to integrate this sort of work at the libc level than to ask applications to support their own replacements for libc routines.

Re: [GENERAL] Fastest memmove in C

2016-07-07 Thread Stephen Frost
* Merlin Moncure (mmonc...@gmail.com) wrote: > Well, testing is the key here. Microbechmarks demonstrating the value > are not enough; proven statistically relevant benchmarks generated > from postgres are the data points needed to make an assessment. My > recommendation would be to dynamically li

Re: [GENERAL] Fastest memmove in C

2016-07-07 Thread Merlin Moncure
On Thu, Jul 7, 2016 at 6:12 AM, FarjadFarid(ChkNet) wrote: > > > Hi Álvaro, > > Based on the article. This research has been tested with various hardware. > The code automatically detects the hardware and based on the size of memory > to be copied it will choose one of 3 routines. > > Regarding li

Re: [GENERAL] Fastest memmove in C

2016-07-07 Thread FarjadFarid(ChkNet)
On Behalf Of Alvaro Herrera Sent: 06 July 2016 22:15 To: FarjadFarid(ChkNet) Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Fastest memmove in C FarjadFarid(ChkNet) wrote: > Excellent research and could be well worth checking out. As it could > improve the performance of postgresql e

Re: [GENERAL] Fastest memmove in C

2016-07-06 Thread Alvaro Herrera
FarjadFarid(ChkNet) wrote: > Excellent research and could be well worth checking out. As it could > improve the performance of postgresql engine. 0) We certainly do a lot of memory copying. 1) this work is under the "Code Project Open License" which doesn't look compatible with our Postgres lice

Re: [GENERAL] Fastest memmove in C

2016-07-06 Thread FarjadFarid(ChkNet)
Just came across this excellent research work done on memmove by T Herselman. Bearing in mind memory is constantly moved in any database. This excellent set of library would be very handy for those who work at the deep end of postgresql. In a nut shell, the library checks the hardwa