Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <877c6s7lu2.fsf@nosuchdomain.example.com>
Deutsch   English   Français   Italiano  
<877c6s7lu2.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.arch
Subject: Re: Segments
Date: Fri, 17 Jan 2025 21:05:57 -0800
Organization: None to speak of
Lines: 24
Message-ID: <877c6s7lu2.fsf@nosuchdomain.example.com>
References: <vdlgl9$3kq50$2@dont-email.me> <vdtmv9$16lu8$1@dont-email.me>
	<2024Oct6.150415@mips.complang.tuwien.ac.at>
	<vl7m2b$6iat$1@paganini.bofh.team>
	<2025Jan3.093849@mips.complang.tuwien.ac.at>
	<vlcddh$j2gr$1@paganini.bofh.team>
	<2025Jan5.121028@mips.complang.tuwien.ac.at>
	<vleuou$rv85$1@paganini.bofh.team>
	<ndamnjpnt8pkllatkdgq9qn2turaao1f0a@4ax.com>
	<2025Jan6.092443@mips.complang.tuwien.ac.at>
	<vlgreu$1lsr9$1@dont-email.me> <vlhjtm$1qrs5$1@dont-email.me>
	<bdZeP.23664$Hfb1.16566@fx46.iad> <vlj1pg$25p0e$1@dont-email.me>
	<87cygo97dl.fsf@nosuchdomain.example.com>
	<vm7mvi$2rr87$1@dont-email.me> <vmaig9$3ehn7$1@dont-email.me>
	<vmbesc$3d6n7$1@dont-email.me> <vmblm4$3kno9$1@dont-email.me>
	<87zfjq73gh.fsf@nosuchdomain.example.com>
	<84d10252cc7b0435cd5f4d6232397371@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 18 Jan 2025 06:05:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="18b322b900bcc7775cdb204f7cec3c3c";
	logging-data="624198"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/yQ0tMc8kG6xPVvtu2BJNl"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:s8jb9dJwJ6q1gkdSUfaMRVcFw+s=
	sha1:hZ3ZLF7Zwj/5g2ZH6wVt+1bsjXo=

mitchalsup@aol.com (MitchAlsup1) writes:
> On Thu, 16 Jan 2025 23:18:22 +0000, Keith Thompson wrote:
>> Terje Mathisen <terje.mathisen@tmsw.no> writes:
>> [...]
>>> I do know that several people have created fast string libraries,
>>> where any string that is short enough ends up entirely inside the dope
>>> vector, so no heap allocation.
>>
>> Some implementations of C++ std::string do this.  For example, the GNU
>> implementation appears to store up to 16 characters (including the
>> trailing null character) in the std::string object.
>
> Why use an 8-byte pointer to store a string 16 or fewer bytes long ? !!

Can you rephrase or expand on that comment?  I'm having trouble
figuring out what underlying point you're making.  Or, if you prefer,
we can drop it.

Storing short strings directly in the std::string object seems like
a pretty good idea to me.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */