comp.lang.ada
 help / color / mirror / Atom feed
From: Olivier Henley <olivier.henley@gmail.com>
Subject: Re: ANN: Simple components for Ada v.4.42
Date: Thu, 3 Oct 2019 08:43:26 -0700 (PDT)
Date: 2019-10-03T08:43:26-07:00	[thread overview]
Message-ID: <28aacf0a-a720-40f1-bec6-69cd62425b0c@googlegroups.com> (raw)
In-Reply-To: <qlnb82$i6v$1@gioia.aioe.org>

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?


   

  parent reply	other threads:[~2019-10-03 15:43 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 [this message]
2019-10-03 17:51   ` Dmitry A. Kazakov
replies disabled

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