I think the .hrb modules aren't loaded on a per thread basis, so it's not like several of them could be loaded in parallel.
As far as I see from the sources, loading an .hrb from memory is already supported, if you pass the .hrb as a string to the HB_HRBLOAD() function. Maybe a separate HB_HRBLOADFROMMEMORY() would be more clear. [ BTW I'd recommend using HB_HRB*() names instead of the obsolete __HRB*() ones. ] Brgds, Viktor On Tue, Jan 27, 2009 at 6:45 PM, Francesco Saverio Giudice < i...@fsgiudice.com> wrote: > Hi Pritpal, > > Il 27/01/2009 16.58, Pritpal Bedi ha scritto: > >> Hi All >> >> After examining the uhttpd implimentation I am wondering if .hrb code can >> be loaded once and reused >> with every next request. That way this will come at par >> with Xbase++'s WAA (Web Application Adopter) protocol where program DLL >> (called package) is loaded only once. >> >> this is one point in my todo list, but I don't know if there are any > problems storing hrb modules in memory and reuse them. > > What happens to loaded symbol table ? because every modules will have > HRBMAIN() and could have same other function names. > And another: what is faster ? Load from file using __HRBLOAD() / > __HRBUNLOAD() or scanning and array / hash table every time ? I suppose the > second, but I have doubts on symbol table. > > Przemek, Viktor ? > > Best regards > > Francesco > > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour