Re: Cleaning up and speeding up string functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Cleaning up and speeding up string functions
Date
Msg-id 20190722154105.GA23667@alvherre.pgsql
Whole thread Raw
In response to Re: Cleaning up and speeding up string functions  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Responses Re: Cleaning up and speeding up string functions  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
List pgsql-hackers
On 2019-Jul-22, Dagfinn Ilmari Mannsåker wrote:

> ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes:
> 
> > I noticed a lot of these are appending one StringInfo onto another;
> > would it make sense to introduce a helper funciton
> > appendStringInfoStringInfo(StringInfo str, StringInfo str2) to avoid the
> > `str.data, str2.len` repetition?
> 
> A bit of grepping only turned up 18 uses, but I was bored and whipped up
> the attached anyway, in case we decide it's worth it.

David had already submitted the same thing upthread, and it was rejected
on the grounds that it increases the code space.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Date:
Subject: Re: Cleaning up and speeding up string functions
Next
From: Tom Lane
Date:
Subject: Re: Add parallelism and glibc dependent only options to reindexdb