Item1693: LINKTOOLTIPINFO causes massive performance drop

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.6, 1.1.0
Target Release: patch
Applies To: Engine
Component: Render
Branches:
Reported By: StefanPalm
Waiting For:
Last Change By: OlivierRaginel
Foswiki has a massive performance problem when LINKTOOLTIPINFO is enabled. As discused today with my colleague "burns" on IRC a page with a 109 revisions took >10s to render, the same page with disabled LINKTOOLTIPINFO only 2s.

It seems that if Foswiki::Meta::getRevisionInfo is called for object Foswiki::Meta created in Foswiki::Render::_linkToolTipInfo, the $text parameter of _new is empty ( http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2009-06-08,Mon&sel=232#l228 ).

-- StefanPalm


I'm afraid I can't really reproduce this behavior, as this requires having a topic which links to a lot of internal topics, which all have a lot of revisions. Pretty hard to reproduce frown, sad smile

Anyway, I've coded a patch to use cached data instead of accessing the store everytime.

I tried it locally and it seems to work just like it used to (no unit tests for now, so hard to know for sure).

I stumbled also on a bug when you have ASSERTS on, which I haven't fixed yet, because it used to be like that smile Yes, I will eventually fix it, once this is OK.

Stefan or Burns, would you be so kind as to test this on your installation, and report if it's better or not?

Thanks

-- Babar - 09 Jun 2009


We applied the patch and looks like the problem is solved. Rendering with enabled LINKTOOLTIPINFO is now as fast as with disbled ones. Great. smile Thank you very much for your help!

-- StefanPalm - 09 Jun 2009

Problem solved means waiting for release

Thanks Olivier for fixing a problem older than me.

PS: OK I know. This problem was not there during the war. The 1st WW wink

-- KennethLavrsen - 16 Jun 2009

Reopening. Not yet merged to trunk

-- KennethLavrsen - 16 Jun 2009

Ok, finally got time to merge this to trunk. Would be great if StefanPalm or somebody else with some good testing topics (with lots of internal links, each having some history) could report on this.

Closing it anyway, as it works for me and the tests I made.

-- OlivierRaginel - 11 Jul 2009

ItemTemplate edit

Summary LINKTOOLTIPINFO causes massive performance drop
ReportedBy StefanPalm
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Render
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:2cd28961d458 distro:bca019e2b7f1
TargetRelease patch
ReleasedIn 1.0.6, 1.1.0
Topic revision: r6 - 11 Jul 2009, OlivierRaginel
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy