On Thu, Dec 28, 2023 at 08:09:05AM +0800, Qian Yun wrote:
>
>
> On 12/28/23 07:31, Waldek Hebisch wrote:
> >
> > But thinking about HyperDoc, I see another problem: FriCAS is
> > supposed to use current 'util.ht' not a cached copy from the
> > past. Long ago Spad compiler was autoloaded and 'util.ht' was
> > read as a side effect. Now all files are included in the
> > image and side effect take place during image build. We should
> > defer call to 'buildHtMacroTable()', either do this at FriCAS
> > startup or on first use of ')compile' (I think it is used only
> > for compilation).
>
> (7) -> )lisp (time (|buildHtMacroTable|))
>
> Evaluation took:
> 0.000 seconds of real time
> 0.000511 seconds of total run time (0.000409 user, 0.000102 system)
> 100.00% CPU
> 1 form interpreted
> 5,297,256 processor cycles
> 159,104 bytes consed
>
> Value = #<HASH-TABLE :TEST EQUAL :COUNT 271 {100240C353}>
>
> So the performance is totally acceptable for us to run this function
> at each startup.
>
> "interpsys_restart" should be a good place to put it?
Yes.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/ZYzBRtyPmj6IQO0P%40fricas.org.