Re: Use pread and pwrite instead of lseek + write and read

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oskari Saarenmaa <os(at)ohmu(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Use pread and pwrite instead of lseek + write and read
Date: 2016-08-17 13:40:41
Message-ID: 7109.1471441241@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oskari Saarenmaa <os(at)ohmu(dot)fi> writes:
> On my laptop a simple pgbench run (scale 100, 15 minutes) shows a 1.5%
> performance improvement.

I would have hoped for a lot better result before anyone would propose
that we should deal with all the portability issues this'll create.

> A 1.5% performance improvement is small but
> measurable - and IMV more importantly it allows us to drop more than 100
> lines of backwards (compatible?) code; maybe we could start targeting
> more recent platforms in v10?

That's basically nonsense: we'll end up adding way more than that to
deal with platforms that haven't got these APIs.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-08-17 13:55:04 Re: drop src/backend/port/darwin/system.c ?
Previous Message Bruce Momjian 2016-08-17 13:35:35 Re: Why we lost Uber as a user