Lets do No 2 for now.

On 4 March 2014 17:23, Peter Chaplin <notifications@github.com> wrote:

> In tcl/reload.tcl:
>
> >              }
> >          }
> >      }
> > +    if { $reloaded } {
> > +        foreach proc_name [info procs ::*] {
> > +            set md5 [qc::md5 [info body ::$proc_name]]
>
> I think we have 4 options:
> 1. Don't flush on reload
> 2. Flush everything on reload
> 3. Flush some things on reload, but accept that we won't cover everything
> 4. Write our own version of ns_memoize (which is just a wrapper to
> ns_cache anyway), using tcl's trace command to build up a proc dependency
> tree.
>
> If we did write our own memoize (regardless of whether we track
> dependencies), we could avoid calculating md5s for every proc on reload,
> and only look at the procs we've cached.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/qcode-software/qcode-tcl/pull/12/files#r10264408>
> .
>