[Jastadd] [Q] lazy attributes

From: Na, Hyunik <hina_at_kaist.ac.kr>
Date: Wed, 4 Jan 2012 18:05:48 +0900

Hello JastAdd developers,

 

Is the overhead for declaring an attribute as 'lazy' big?

( I guess that the overhead is caused to the amount of memory use. )

Why should we declare an attribute as lazy explicitly if lazy attributes are
beneficial in efficient calculation?

Why isn't 'lazy' the default?

 

Anyway, the keyword 'lazy' seems to be rather misleading.

Every attribute of JastAdd nodes is lazy in that it is calculated only when
accessed.

I believe that 'cached' is a better word.

Am I understanding correctly?

 

- Hyunik.
Received on Wed Jan 04 2012 - 10:06:26 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST