K4kArot2015 / sigplus

Automatically exported from code.google.com/p/sigplus
0 stars 0 forks source link

Performance sigplus #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
SigPlus version 1.5.0.189 for me is getting really basic and indispensable 
addition to the Joomla! If there are templates for the gallery and will 
continue to be developed by the author so it seems that is the foundation of 
every site Joomla!
- Congratulations!

However, I open a new thread dedicated to the performance of activities and 
consumption of server resources, and ways to optimize large pictures such as 
over 1000? (big issue relative).
I do not know if I put the problem properly, please dflatego ew moderates.

Best Regards!

Original issue reported on code.google.com by ten.mari...@gmail.com on 27 Sep 2013 at 9:29

GoogleCodeExporter commented 9 years ago
Version 1.5.0.189
SigPlus delay loading pages Joomla! which does not appear immediately gallery 
SigPlus.
for example,
Archived Articles,
List All Categories,
Category Blog Category,
List Featured Articles.

The same delay in the display of the list of topics Kunena.

SigPlus seems to generate previews and make your indexed even if the user has 
no rights to the article in the Galleria SigPlus?

Delay loading pages takes so long until SigPlus its job in all listing page.
With a rotation of images on the site, many users, at some point, use SigPlus 
leads to paralysis of the entire site and excessive consumption of server 
resources.

The ideal for me would be to optimize the scripts SigPlus only when displayed 
in the gallery and only for the pictures in this gallery.

If SigPlus activated to their work only to directly display the gallery would 
not be traffic jams.

I leave the assessment.

Best Regards!

Original comment by ten.mari...@gmail.com on 27 Sep 2013 at 9:50

GoogleCodeExporter commented 9 years ago
All image processing in sigplus 1.5.x is done with external image processing 
libraries, specifically GD or ImageMagick, which have an interface towards PHP. 
Their parameters are set in PHP configuration. As a developer of sigplus, I 
have little control over these third-party tools. ImageMagick is supposed to 
have higher performance than GD, which is why it is the default image 
processing library if it is available on your server.

sigplus makes an attempt to use as few system resources as possible. For 
example, sigplus releases all graphics handles as soon as generating a preview 
or thumbnail image is finished. Some additional savings would be possible if 
sigplus re-used preview images for generating thumbnails, instead of using the 
original images for generating thumbnails.

Original comment by huny...@gmail.com on 27 Sep 2013 at 9:51

GoogleCodeExporter commented 9 years ago
Unfortunately, sigplus does not always know whether the HTML/JavaScript content 
it generates will eventually be displayed or not. Other extensions may remove 
content sigplus produces in a later phase. It would be great if sigplus could 
determine whether it needs to execute or not, and could skip generating images 
if possible. I do not know if there are Joomla services that would make this 
possible, the Joomla documentation is rather terse, and I am definitely not a 
Joomla framework expert.

Original comment by huny...@gmail.com on 27 Sep 2013 at 9:57

GoogleCodeExporter commented 9 years ago
Is the plugin SigPlus can start their work only when Now showing at the gallery 
on the article?
1 user views the article with a gallery
2 SigPlus checks by name pictures or selected images in a database sigplus.
   - If so, it checks if there are changes.
    - If the change is not displayed gallery.
   - If there are changes, or the name does not appear in the database 
SIGPlus - starts the process of previewing and display the standard message 
SigPlus "there was a gallery page, please refresh the page."
   
   - If the specified directory does not exist, SigPlus in the article, the 
place that the gallery displays the message "This image is in the gallery."

If I'm wrong, please explain to me no problem, I'm not a specialist. I test 
SigPlus from the utility.

Best Regards!

Original comment by ten.mari...@gmail.com on 27 Sep 2013 at 10:15

GoogleCodeExporter commented 9 years ago
sigplus already optimizes image generation and display. When a gallery is about 
to be displayed, only those image folders are scanned in which new images have 
been placed, images have been removed, or images have been updated. Likewise, 
only those preview and thumbnail images are re-generated whose corresponding 
original image has been updated. There is relatively small room for 
optimization in this respect.

Original comment by huny...@gmail.com on 27 Sep 2013 at 6:47

GoogleCodeExporter commented 9 years ago
New optimization has been added to sigplus 1.5.0.191 to use the introductory 
text for detecting whether sigplus has to run. sigplus 1.5.0.190 are earlier 
scanned the full article text for the plug-in activation tag, and returned 
without further processing if no activation tag was found. sigplus 1.5.0.191 
and later scan only the introductory text for Joomla contexts "Featured 
articles", "Category blog layout" and "Category list layout", and short-circuit 
if no sigplus activation tag is found. These Joomla contexts display at most 
the introductory text (in particular, list layout displays no article text at 
all), and if sigplus is not used in the introductory text, the plug-in does not 
need to execute.

For the above technique to be effective for the "list of topics" in Kunena, you 
must provide the Joomla context string. For example, the Joomla indexer has the 
context string "com_finder.indexer", the Joomla category blog and list layout 
has the context string "com_content.category", and the Joomla list of featured 
articles has the context string "com_content.featured". A similar string is 
required for Kunena "list of topics".

Original comment by huny...@gmail.com on 27 Sep 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Way to go. I tested. Two questions.

0 "[...] You must popup the Joomla context string. [...]
- I do not understand where I have set up? change in Joomla?

1 Do Inport / Export settings SigPlus the latest version works fine?
2 Is better to install the beta versions of the update or najlpierw uninstall 
the previous version?

Best Regards!

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 10:43

GoogleCodeExporter commented 9 years ago
0. No, this is not something you would be supposed to do. However, for the same 
technique to work with Kunena list of topics as with e.g. Joomla category blog 
layout, I need the Kunena context string. For example, the Joomla indexer has 
the context string "com_finder.indexer". The list of topics in Kunena should 
have a similar context string. I am sure the Kunena documentation, developers 
or forum members can tell what it is.

1. I suppose they do. I did not make any changes to how settings are imported 
and exported in the latest version.

2. I always update the extension and never uninstall the previous version, 
which would lose all my current settings, and I would have to rely on manually 
exporting/importing settings. Of course, it would be wise to uninstall the 
extension occasionally, and see if a fresh install works as by design.

Original comment by huny...@gmail.com on 28 Sep 2013 at 11:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Polish and English are pretty much intermixed in your comment and I am not sure 
I understand what your exact problem is. The issue of sigplus being triggered 
for Joomla category blog and list layouts when sigplus galleries are found in 
the article main text but not in the introductory text should now be solved. 
This has been tested in my own test environment.

I admit sigplus could be more intelligent than it currently is when it runs out 
of allowed execution time. In particular, it could skip generating preview and 
thumbnail images, populate the generated image database with special entries to 
indicate that the images are yet to be generated, and produce a gallery with 
special placeholders for images ("No image"). As it might come through from 
this lengthy description, this is by far not straightforward or simple to 
implement, and has clear benefits only if you have several images on the same 
web page.

If you are still interested in the "No image" placeholder feature, please 
submit a separate item in the issue tracker.

Original comment by huny...@gmail.com on 28 Sep 2013 at 11:15

GoogleCodeExporter commented 9 years ago
1.5.0.191: 

such a scenario:
1. I have many galleries in various articles.
2. Uninstal SigPlus
3. installs the new version and enable Plugin SigPlus
4. I display one of articles with 4 gallery SigPlus
Now:
5. SigPlus slow loading pages due to the generation of thumbnails, but not only 
generates a display gallery? (I think) generate other in any order by base 
sigPlus. For this reason, display gallery in the article being displayed not 
results and requires continuous refreshing and refreshing the page, with no 
visible effect on this site.

6. While waiting for the generation of thumbnails in the gallery visible at the 
gallery displays the raw code gallery SigPlus paths and parameters control the 
gallery. Code is replaced by a miniature or prompt "No Image" only when SigPlus 
transform this part of the page.

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 11:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I fixed My post. Sorry.

I'm not sure that the image placeholder "no image" is good.
The idea is that, dynamic gallery does not "frighten" user sessions and working 
quietly in the background.
Current message "This image is in the gallery" seems to me a very good and 
unobtrusive.

But the problem is that my above-described situation appears surowu code 
instead of an appropriate caption information. Maybe a new sign for the 
occasion as "being updated pictures, please refresh the page." ?

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 11:26

GoogleCodeExporter commented 9 years ago
From an implementation perspective, it is not straightforward to implement a 
background process for image generation, especially with sigplus being a 
plug-in and not a component. (Plug-in capabilities in Joomla are more 
restricted than component capabilities.)

As mentioned above, if you are interested in this feature, please create a new 
item in the issue tracker, with all relevant information (e.g. your comments 
#11 and #13) copied from this thread into the new issue report. Remember that 
any issue report must be clear, concise, up-to-the-point. This issue is now 
beginning to cover a wide range of unrelated topics, and it will become 
impossible to determine when this issue can be closed (marked as fixed). 
Furthermore, with so many comments as above, it will take a couple of minutes 
the next time I get around to fixing issues and implementing feature requests, 
a reading exercise of its own! :) A single issue report with a short 
description has much higher chances of getting implemented.

Original comment by huny...@gmail.com on 28 Sep 2013 at 11:37

GoogleCodeExporter commented 9 years ago
I understand.

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 11:42

GoogleCodeExporter commented 9 years ago
Perhaps support should appear on the "Performance".
Where you want to describe the recommended optimize your Joomla! maintenance 
and optimization techniques using SigPlus galleries? — How to maintain the 
operating gallery, the advantages of the default engine so that what has been 
written here?

Best Regards!

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 11:46

GoogleCodeExporter commented 9 years ago
1.5.0.191 version
Still in view, Joomla! List menu item starts sigplus proces generate thumb. in 
the background. I understand that it is working Joomla, which can not be 
changed?

Original comment by venapr...@gmail.com on 28 Sep 2013 at 12:04

GoogleCodeExporter commented 9 years ago
Joomla category list layout will still produce thumbnail and preview images if 
the sigplus gallery is placed in the article introductory text. This is a 
Joomla limitation; as far as I see, there is no way to distinguish between 
Joomla category blog layout and list layout. For list layout, sigplus could 
skip generating images but for blog layout, sigplus must run if there is a 
gallery in the introductory text. If you do not use the "Read more..." marker 
in a Joomla article, all text constitutes introductory text. If you use "Read 
more...", anything before the marker is the introductory text.

Original comment by huny...@gmail.com on 28 Sep 2013 at 12:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Great is a valuable tip for use SigPlus. Kind of obvious, but I forgot about it.
I have next question.
In one article, there are 5 gallery, only one gallery is placed before the tag 
"read more" Joomla article.
When you call up Joomla menu lists, SigPlus stops for indexing only the first 
gallery?

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 1:28

GoogleCodeExporter commented 9 years ago
1.5.0.191 version
It seems to have a fix in performance. Thank you,

Original comment by ten.mari...@gmail.com on 28 Sep 2013 at 1:29

GoogleCodeExporter commented 9 years ago
I have next question.
In one article, there are 5 gallery, only one gallery is placed before the tag 
"read more" Joomla article.
When you call up Joomla menu lists, SigPlus stops for indexing only the first 
gallery?

Original comment by ten.mari...@gmail.com on 29 Sep 2013 at 7:30