Speed issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Speed issue

Dennis Schetinin
Hello...

We are trying to build a site using Pier. Recently we migrated to pharo0.1-10268web09.04.1. Previously we used something like Pier 1.1 with some updates. We found new version a bit slower on our computers. It was not a big problem. But we have to use an old notebook for entering data to our site. And there we've got about a minute delay after structure addition. I found the cause is in

PRChangeCommand >> updateRoot:

There a big string is being built started with "EditorEnh.linkOptions=". In our case it's size is 207328. Then it's being modified by copyReplaceAll: '"' with: '\"' . On old notebook it's very slow. I replaces that #copyReplaceAll:with: with (sorry for the tautology) streaming. Now it takes about 10 seconds instead of a minute. But still it's too slow (10 -- 15 seconds was a time to enter the whole data item in old image). Can this issue be fixed somehow?

TIA

Btw, is issues with filenames (I've asked about some time ago) fixed?


--
Dennis Schetinin


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Speed issue

Lukas Renggli
> PRChangeCommand >> updateRoot:
>
> There a big string is being built started with "EditorEnh.linkOptions=". In
> our case it's size is 207328. Then it's being modified by copyReplaceAll:
> '"' with: '\"' . On old notebook it's very slow. I replaces that
> #copyReplaceAll:with: with (sorry for the tautology) streaming. Now it takes
> about 10 seconds instead of a minute. But still it's too slow (10 -- 15
> seconds was a time to enter the whole data item in old image). Can this
> issue be fixed somehow?

This code creates a list of all pages in Pier, so that the toolbar is
able to offer you a menu with all the possible pages. For a large Pier
installation that list can become large, that's a problem. I'll look
into this, maybe it would be better to dynamically request that list
or only fill it with commonly used links?

In the meantime I suggest that you don't use Pier-EditorEnh (or
uncomment the part that creates the list of all pages).

> Btw, is issues with filenames (I've asked about some time ago) fixed?

There are still a couple of issues in some cases. I've committed
various improvements, but I don't know what you are exactly referring
to?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Speed issue

Dennis Schetinin
In the meantime I suggest that you don't use Pier-EditorEnh (or
uncomment the part that creates the list of all pages).

Sorry, I'm not sure how to do it. Should it be unloaded or just "switched-off" somehow?
And the second option says absolutely nothing for me --- where to uncomment that?
 
> Btw, is issues with filenames (I've asked about some time ago) fixed?

There are still a couple of issues in some cases. I've committed
various improvements, but I don't know what you are exactly referring
to?

Did not check it yet.  Thank you for your work! :)

--
Dennis Schetinin

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Speed issue

Dennis Schetinin
In the meantime I suggest that you don't use Pier-EditorEnh (or
uncomment the part that creates the list of all pages).

Sorry, I'm not sure how to do it. Should it be unloaded or just "switched-off" somehow?
And the second option says absolutely nothing for me --- where to uncomment that? 

I commented the part generating "EditorEnh.linkOptions". Think that was what you mean...
It seems to work on my notebook and seems to be faster... Later will check it on the old  (and slow) computer. \
Thanks

--
Dennis Schetinin

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Speed issue

Lukas Renggli
Load the latest EditorEnh, it loads the list of links using AJAX now
and thus so it should be much faster in the normal case.

Lukas

On Wed, Apr 29, 2009 at 10:31 AM, Dennis Schetinin <[hidden email]> wrote:

>>> In the meantime I suggest that you don't use Pier-EditorEnh (or
>>> uncomment the part that creates the list of all pages).
>>
>> Sorry, I'm not sure how to do it. Should it be unloaded or just
>> "switched-off" somehow?
>> And the second option says absolutely nothing for me --- where to
>> uncomment that?
>
> I commented the part generating "EditorEnh.linkOptions". Think that was what
> you mean...
> It seems to work on my notebook and seems to be faster... Later will check
> it on the old  (and slow) computer. \
> Thanks
>
> --
> Dennis Schetinin
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Speed issue

Dennis Schetinin

Load the latest EditorEnh, it loads the list of links using AJAX now
and thus so it should be much faster in the normal case.

Lukas


Thank you. Now it's ok.

--
Dennis Schetinin

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki