Hey slava, for perceived speed, what about loading the factor code in 
the environment and loading the documentation in a spawned thread? 
(which will end later in its own time)
This way, it would return immediately after the factor code was loaded. 
which is what the user was probably waiting for.
maybe it will produce a perceived speedup.

Slava Pestov wrote:
> Hi all,
>
> For a long time, loading a vocabulary which defined a new type of
> sequence would take forever due to recompilation. With the new
> front-end and optimizer, not any more:
>
> ( scratchpad ) [ "bit-vectors" require ] time
> Loading resource:basis/bit-vectors/bit-vectors.factor
> Loading resource:basis/bit-vectors/bit-vectors-docs.factor
> :warnings - print 1 semantic warnings.
> ==== RUNNING TIME
>
> 6465 ms
>
> ==== GARBAGE COLLECTION
>
>                           Nursery  Aging    Tenured
> GC count:                299      45       2
> Cumulative GC time (ms): 274      634      631
> Longest GC pause (ms):   10       20       419
> Average GC pause (ms):   0        14       315
> Objects copied:          649567   1345374  1787920
> Bytes copied:            32764992 71420704 99889592
>
> Total GC time (ms):      1539
> Cards scanned:           275529
> Decks scanned:           9426
> Code heap literal scans: 33
>
> ( scratchpad ) [ "float-arrays" require ] time
> Loading resource:basis/float-arrays/float-arrays.factor
> Loading resource:basis/float-arrays/float-arrays-docs.factor
> :warnings - print 1 semantic warnings.
> ==== RUNNING TIME
>
> 7041 ms
>
> ==== GARBAGE COLLECTION
>
>                           Nursery  Aging    Tenured
> GC count:                370      54       0
> Cumulative GC time (ms): 308      641      0
> Longest GC pause (ms):   10       34       0
> Average GC pause (ms):   0        11       0
> Objects copied:          745534   1309415  0
> Bytes copied:            42126320 83458544 0
>
> Total GC time (ms):      949
> Cards scanned:           177441
> Decks scanned:           10991
> Code heap literal scans: 28
>
> Still a tad slow, but nowhere near as bad as the ~1 minute times we had 
> before.
>
> Slava
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK&  win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>    


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to