[m-rev.] for review: start using --generate-dependencies-ints

Julien Fischer jfischer at opturion.com
Tue Oct 31 23:03:11 AEDT 2023


On Sun, 29 Oct 2023, Julien Fischer wrote:

>>>  The primary culprit for this
>>>  seems to be all the file copying that is going on.
>>
>>  How certain is that assertion?
>
> Very certain. Each call to module_cmds.copy_file/7 from
> module_cmds.copy_dot_tmp_to_base_file_create_file/8 is taking on
> average 500ms on my Windows machine.  Indeed, using the "slow"
> path in copy_file/7, i.e via do_copy_file/5, is *much* faster
> (~7ms a copy) on the same machine.
>
> My guess would be that we actually want to use of the Windows API's
> file copying functions here; I'll give that a go.

For the sake of completeness, calling CopyFileW() to do the copying
comes in at < 1ms a copy.  Zoltan and I had a cat off-line about
this issue and some others related to how the compiler copies files.
I will post some proposed changes to m-dev some time in the coming
week.

Julien.


More information about the reviews mailing list