| Deutsch English Français Italiano |
|
<10279o4$mogu$1@raubtier-asyl.eternal-september.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: encapsulating directory operations Date: Mon, 9 Jun 2025 20:39:17 +0200 Organization: A noiseless patient Spider Lines: 15 Message-ID: <10279o4$mogu$1@raubtier-asyl.eternal-september.org> References: <100h650$23r5l$1@dont-email.me> <1858c98adc50b2bec4021f15d0c5b94e2158f6b5.camel@gmail.com> <10223hq$38g0s$1@raubtier-asyl.eternal-september.org> <10229vo$3b858$1@dont-email.me> <102497b$3tavs$3@raubtier-asyl.eternal-september.org> <Qij1Q.929648$mjgd.612014@fx09.iad> <1024qkl$1iim$3@raubtier-asyl.eternal-september.org> <VOB1Q.374963$K3w3.304119@fx05.iad> <1026uas$k2dv$1@raubtier-asyl.eternal-september.org> <PrD1Q.104796$9QV5.36641@fx39.iad> <10276jc$lt1o$1@raubtier-asyl.eternal-september.org> <6OF1Q.1173207$%pKb.770421@fx14.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 09 Jun 2025 20:39:01 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="acabef608228f73cc3be98d7637ae940"; logging-data="746014"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FAgGLNv0aoEt5dPG+AQfAQ41TVUs9RGs=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:bftyMPhS+F0DCcN1an6/DpNsl4k= In-Reply-To: <6OF1Q.1173207$%pKb.770421@fx14.iad> Content-Language: de-DE Am 09.06.2025 um 20:33 schrieb Scott Lurndal: > And there are many ways to handle it that don't include throwing > bad_alloc when the system is unable to provide additional address > space, memory or backing store. These ways are all less comfortable than bad_alloc. > Allocating major data structures at application start (perhaps using > a pool allocator) and crafting your algorithms such that they > don't require infinite memory is a good start. With modern allocators like mimalloc allocation is that fast that you mostly can't compete with your own pools.