Re: Decimal64 and Decimal128

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Feng Tian <ftian(at)vitessedata(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Decimal64 and Decimal128
Date: 2015-09-24 21:50:56
Message-ID: CAKJS1f_QuqK4bA5onggdF8iEE+Qw4P40eTWH+r9Jg2mgt8DMZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 25 September 2015 at 08:29, Feng Tian <ftian(at)vitessedata(dot)com> wrote:

> Compared to numeric type, decimal64 arithmetics is about 2x faster,
> decimal128 is about 1.5x faster. However, the cast between decimal and
> float4/8 is implemented rather naively and slow. As always, it depends on
> workload, decimal may take more, or less space, may be slower if cast is
> frequently performed.
>

Are you able to share the processor vendor, and perhaps some other specs of
the machine you obtained these results from?

Regards

David Rowley

--
David Rowley http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2015-09-24 21:57:33 Re: Decimal64 and Decimal128
Previous Message Josh Berkus 2015-09-24 21:45:46 Re: No Issue Tracker - Say it Ain't So!