recompiling all classes and traits is slow (at least on windows)
recompiling all classes -> ~ 2 minutes recompiling all traits -> ~ 13 minutes is there any way to recompile all without removing and adding all trait methods for trait users ? Because this touches the changes file (although recompiling shouldn't change the source) and touching the changes file for many methods is pretty slow on windows. nicolai
If you only need it for yourself you could probably speed things up by doing Smalltalk closeSourceFiles. [ compile⦠] ensure: [ Smalltalk openSourceFiles ]. That will prevent reads and writes from and to the changes / sources files. Of course, that doesnât solve the problem in general. Cheers, Max
On 21 Nov 2015, at 20:09, Nicolai Hess <nicolaihess@gmail.com> wrote:
recompiling all classes -> ~ 2 minutes recompiling all traits -> ~ 13 minutes
is there any way to recompile all without removing and adding all trait methods for trait users ? Because this touches the changes file (although recompiling shouldn't change the source) and touching the changes file for many methods is pretty slow on windows.
nicolai
That is better, 5 minutes instead of 15 ! 2015-11-22 12:16 GMT+01:00 Max Leske <maxleske@gmail.com>:
If you only need it for yourself you could probably speed things up by doing
Smalltalk closeSourceFiles. [ compile⦠] ensure: [ Smalltalk openSourceFiles ].
That will prevent reads and writes from and to the changes / sources files. Of course, that doesnât solve the problem in general.
Cheers, Max
On 21 Nov 2015, at 20:09, Nicolai Hess <nicolaihess@gmail.com> wrote:
recompiling all classes -> ~ 2 minutes recompiling all traits -> ~ 13 minutes
is there any way to recompile all without removing and adding all trait methods for trait users ? Because this touches the changes file (although recompiling shouldn't change the source) and touching the changes file for many methods is pretty slow on windows.
nicolai
Wow, I did not know you can close and open source files. Everyday there is something to learn. Cheers, Alexandre
On Nov 22, 2015, at 8:16 AM, Max Leske <maxleske@gmail.com> wrote:
If you only need it for yourself you could probably speed things up by doing
Smalltalk closeSourceFiles. [ compile⦠] ensure: [ Smalltalk openSourceFiles ].
That will prevent reads and writes from and to the changes / sources files. Of course, that doesnât solve the problem in general.
Cheers, Max
On 21 Nov 2015, at 20:09, Nicolai Hess <nicolaihess@gmail.com> wrote:
recompiling all classes -> ~ 2 minutes recompiling all traits -> ~ 13 minutes
is there any way to recompile all without removing and adding all trait methods for trait users ? Because this touches the changes file (although recompiling shouldn't change the source) and touching the changes file for many methods is pretty slow on windows.
nicolai
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On 22 Nov 2015, at 10:42, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Wow, I did not know you can close and open source files. Everyday there is something to learn.
It does not look like something you are supposed to know⦠or do. There are multiple things that are just not well done: -> .sources and .chages file reading opens a new stream for each read/write (Martin has a fix for that⦠we need to add it) -> recompile should not touch the changes file *at all*, even for traits. and of course, the whole .changes/.sources stuff should be rethought. It was great for 1978, but for today? Marcus
participants (4)
-
Alexandre Bergel -
Marcus Denker -
Max Leske -
Nicolai Hess