comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: ANN: Simple components for Ada v.4.42
Date: Thu, 3 Oct 2019 19:51:39 +0200
Date: 2019-10-03T19:51:39+02:00	[thread overview]
Message-ID: <qn5cf9$18ab$1@gioia.aioe.org> (raw)
In-Reply-To: 28aacf0a-a720-40f1-bec6-69cd62425b0c@googlegroups.com

On 2019-10-03 17:43, Olivier Henley wrote:
> On your simple components documentation page we can read:
> 
> "A stack pool consists of contiguous segments allocated dynamically as necessary. The discriminants control the stack segments allocation policy. Initial_Size determines the initial default size of a newly allocated segment. If this size is less than the size of the object being allocated the default size is set to the object size multiplied to Items_Number."
> 
> Given this:
> 
> Arena : aliased Stack_Storage.Pool (200, 512); -- Pool to keep JSON object
> ...
> Data : constant JSON_Value := Parse (Input'Access, Arena'Access); -- Parse the file
> 
>  From that, correct me if I am wrong, if I throw a json document (Input) bigger than 200*512, the stack pool will grow dynamically to accomodate?

Yes

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

      reply	other threads:[~2019-10-03 17:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-16  6:48 ANN: Simple components for Ada v.4.42 Dmitry A. Kazakov
2019-09-16  6:58 ` briot.emmanuel
2019-09-16  7:44   ` Dmitry A. Kazakov
2019-10-03 18:58     ` Olivier Henley
2019-10-03 19:58       ` Dmitry A. Kazakov
2019-10-03 21:16         ` Olivier Henley
2019-10-03 21:29           ` Olivier Henley
2019-10-04  7:56             ` Dmitry A. Kazakov
2019-09-16  8:18   ` J-P. Rosen
2019-09-16 19:10   ` Dmitry A. Kazakov
2019-10-03 23:53   ` onox
2019-10-04  7:56     ` Dmitry A. Kazakov
2019-10-04 10:52       ` Olivier Henley
2019-10-04 12:15         ` Dmitry A. Kazakov
2019-10-03 15:43 ` Olivier Henley
2019-10-03 17:51   ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox