[Pharo-project] Configuration loading 1.4 vs 2.0

Camillo Bruni camillobruni at gmail.com
Sun Sep 9 09:29:21 EDT 2012


Doesn't really matter which config you use:

Gofer it
        squeaksource: 'NativeBoost';
        package: 'ConfigurationOfNativeBoost';
        load.

ConfigurationOfNativeBoost loadDevelopment

On 2012-09-09, at 15:27, Mariano Martinez Peck <marianopeck at gmail.com> wrote:

> Send me the doIt to install your confs and I will try to try it.
> 
> On Sun, Sep 9, 2012 at 3:25 PM, Mariano Martinez Peck <marianopeck at gmail.com
>> wrote:
> 
>> 
>> 
>> On Sun, Sep 9, 2012 at 3:20 PM, Camillo Bruni <camillobruni at gmail.com>wrote:
>> 
>>> 
>>> On 2012-09-09, at 15:16, Mariano Martinez Peck <marianopeck at gmail.com>
>>> wrote:
>>> 
>>>> allFileNames
>>>> cacheFileNames == true ifFalse: [ ^ self loadAllFileNames ].
>>>> ^ allFileNames ifNil: [
>>>> allFileNames := self loadAllFileNames]
>>>> 
>>>> 
>>>> If you put a halt in the first if, you will see it stops...
>>>> because cacheFileNames is nil. In 1.4 you have:
>>>> 
>>>> allFileNamesOrCache
>>>> ^ allFileNames ifNil: [self allFileNames]
>>>> 
>>>> so it kind of always cached... so maybe this is a difference that
>>> affects
>>>> the results?
>>> 
>>> 
>>> humm you might be right |(. so metacello should explicitely tell to cache
>>> stuff in 2.0 then
>>> 
>>> 
>>> 
>> 
>> I would do
>> 
>> MCFileBasedRepository >> initialize
>> cacheFileNames := true
>> 
>> or something like test. But first, we should be sure this was really one
>> of the causes of the slowdown
>> 
>> 
>> 
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>> 
>> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com





More information about the Pharo-dev mailing list