discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

What does "Module cache size" mean

NH
nop head
Tue, Nov 22, 2016 12:11 PM

I see "Module cache size: 27 modules" when there are 96 modules in my code.
Is 27  the maximum size of the cache, if so why so small? Is it the current
number of modules cached, again why so small?

I see "Module cache size: 27 modules" when there are 96 modules in my code. Is 27 the maximum size of the cache, if so why so small? Is it the current number of modules cached, again why so small?
MK
Marius Kintel
Tue, Nov 22, 2016 2:47 PM

On Nov 22, 2016, at 07:11, nop head nop.head@gmail.com wrote:

I see "Module cache size: 27 modules" when there are 96 modules in my code. Is 27  the maximum size of the cache, if so why so small? Is it the current number of modules cached, again why so small?

It’s just a debug message: The module cache in an internal cache of already parsed FileModules, i.e. .scad files that are “use”’d in your design.

-Marius

> On Nov 22, 2016, at 07:11, nop head <nop.head@gmail.com> wrote: > > I see "Module cache size: 27 modules" when there are 96 modules in my code. Is 27 the maximum size of the cache, if so why so small? Is it the current number of modules cached, again why so small? It’s just a debug message: The module cache in an internal cache of already parsed FileModules, i.e. .scad files that are “use”’d in your design. -Marius
NH
nop head
Tue, Nov 22, 2016 3:39 PM

AFAIK they should all be used by use statements, not all instantiated but a
lot more than 27 instantiated.

On 22 November 2016 at 14:47, Marius Kintel marius@kintel.net wrote:

On Nov 22, 2016, at 07:11, nop head nop.head@gmail.com wrote:

I see "Module cache size: 27 modules" when there are 96 modules in my

code. Is 27  the maximum size of the cache, if so why so small? Is it the
current number of modules cached, again why so small?

It’s just a debug message: The module cache in an internal cache of
already parsed FileModules, i.e. .scad files that are “use”’d in your
design.

-Marius


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

AFAIK they should all be used by use statements, not all instantiated but a lot more than 27 instantiated. On 22 November 2016 at 14:47, Marius Kintel <marius@kintel.net> wrote: > > On Nov 22, 2016, at 07:11, nop head <nop.head@gmail.com> wrote: > > > > I see "Module cache size: 27 modules" when there are 96 modules in my > code. Is 27 the maximum size of the cache, if so why so small? Is it the > current number of modules cached, again why so small? > > It’s just a debug message: The module cache in an internal cache of > already parsed FileModules, i.e. .scad files that are “use”’d in your > design. > > -Marius > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
MK
Marius Kintel
Tue, Nov 22, 2016 5:44 PM

On Nov 22, 2016, at 10:39, nop head nop.head@gmail.com wrote:

AFAIK they should all be used by use statements, not all instantiated but a lot more than 27 instantiated.

The module cache only deals with caching parsed FileModules, it has nothing to do with instantiation of named modules in your design. I would guess your design consists of 27 use’d files + the main scad file.

-Marius

On Nov 22, 2016, at 10:39, nop head <nop.head@gmail.com> wrote: > > AFAIK they should all be used by use statements, not all instantiated but a lot more than 27 instantiated. > The module cache only deals with caching parsed FileModules, it has nothing to do with instantiation of named modules in your design. I would guess your design consists of 27 use’d files + the main scad file. -Marius
NH
nop head
Tue, Nov 22, 2016 6:56 PM

Reading it again I see that these are used files, not OpenSCAD modules,
hence the number is much smaller.

On 22 November 2016 at 15:39, nop head nop.head@gmail.com wrote:

AFAIK they should all be used by use statements, not all instantiated but
a lot more than 27 instantiated.

On 22 November 2016 at 14:47, Marius Kintel marius@kintel.net wrote:

On Nov 22, 2016, at 07:11, nop head nop.head@gmail.com wrote:

I see "Module cache size: 27 modules" when there are 96 modules in my

code. Is 27  the maximum size of the cache, if so why so small? Is it the
current number of modules cached, again why so small?

It’s just a debug message: The module cache in an internal cache of
already parsed FileModules, i.e. .scad files that are “use”’d in your
design.

-Marius


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Reading it again I see that these are used files, not OpenSCAD modules, hence the number is much smaller. On 22 November 2016 at 15:39, nop head <nop.head@gmail.com> wrote: > AFAIK they should all be used by use statements, not all instantiated but > a lot more than 27 instantiated. > > On 22 November 2016 at 14:47, Marius Kintel <marius@kintel.net> wrote: > >> > On Nov 22, 2016, at 07:11, nop head <nop.head@gmail.com> wrote: >> > >> > I see "Module cache size: 27 modules" when there are 96 modules in my >> code. Is 27 the maximum size of the cache, if so why so small? Is it the >> current number of modules cached, again why so small? >> >> It’s just a debug message: The module cache in an internal cache of >> already parsed FileModules, i.e. .scad files that are “use”’d in your >> design. >> >> -Marius >> >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >