Hi Steph,
almost certainly because in Pharo the sources file is opened once for each
method whereas in squeak a read-only copy is taken and reused.
I don't like the squeak approach:
CurrentReadOnlySourceFiles cacheDuring:
[...]
but it does play well with the debugger. So fixing this elegantly is
non-trivial. I suggest you try and real squeak-dev messages talking about
CurrentReadOnlySourceFiles and "read-only copies" of the sources files.
_,,,^..^,,,_ (phone)
> On May 18, 2016, at 10:12 AM, stepharo <[email protected]> wrote:
>
> I am wondering why does the search 'method source with it' take so long in
> Pharo 5? On my PC, When I select the text 'menu' and search for all 'method
> source with it', in Squeak 5 it takes 3 seconds. In Pharo 5 it takes 21
> seconds.
>
>