[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gbs3 not exiting


I am talking about building the cache on the platform you are installing onto at the time it is being installed, not before. All that would really be required is to add a JitBuild() to each component,library or app,  that would cause the jit to build the cache during the install process. Then also as part of the installation process run a completion script as part of the install process then would run the entrypoint after the components/libs/app have been installed, directing the jit output to the system wide cache. Of course the script would have to attempt to run all the entrypoints of each comp/lib/app in parallel This of course would respect all of the systems specific areas onto which your installing the libs/components. and CPU architecture. the search path using the old location first then the system location when looking for built jits. Farther it would eliminate the delays for all userids on the system when starting an application for the first time after a system restart that clears the temp cache. And I think a few people use more than one id on a development system, and on a production system the delay, caused a lot of ctrl-c's that should not happen right now.

On November 13, 2026 12:17:20 PM PST, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

   can't it do it in the background as a task?

   seems the actual highlighters return their values right away, then
   the process holds while all the jit libs are made, then finally the
   process ends.

   so could it just make the libs in a background task?

   Or maybe make the libs in a more permanent place so it does not have
   to remake them at each boot?  ~/.local/libs/gambas3 or something?

   I would not exactly call my laptop slow, it's an 8 core i5 dell
   Latitude, it's not the best but it's not bad.
   Still that one line of code takes 45 seconds on a fresh JIT cache in
   /tmp/.

   Respects.
   BruceS

   On Fri, 13 Nov 2026 at 18:45, Benoît Minisini
   <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

       Le 13/11/2026 à 18:55, Brian G a écrit :
        > I would be good if at the time the software
       (apps,libs,components) is
        > installed onto the machine, that a /lib/gambas3/cache be
       created for
        > apps and lib/components that use jit, some part of the
       install process
        > invokes the jit compiler on the system being installed upon
       and caches
        > it in the system folder, where gambas looks first for cached
       built jit
        > code... I wonder if that sort of thing is possible. It sure
       would speed
        > things up.

       I can't, and I don't want, because JIT must not break
       architecture-independant packages, and because JIT does not just
       depends
       on the system, but on the CPU too.

        >
        > on the up side, if you change the jit compile flags such that
       they do
        > not do aggressive in-lining it speeds the time taken up by
       quite a lot.
        >

       Maybe this is a solution for "slow" computers, using "-O2"
       instead of
       "-O3". I will check...

-- Benoît Minisini.


Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: gbs3 not exitingBrian G <brian@xxxxxxxxxxxxxxxx>
Re: gbs3 not exitingBrian G <brian@xxxxxxxxxxxxxxxx>
References:
gbs3 not exitingBruce Steers <bsteers4@xxxxxxxxx>
Re: gbs3 not exitingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gbs3 not exitingBruce Steers <bsteers4@xxxxxxxxx>
Re: gbs3 not exitingBrian G <brian@xxxxxxxxxxxxxxxx>
Re: gbs3 not exitingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gbs3 not exitingBruce Steers <bsteers4@xxxxxxxxx>