Bug Tracker

Ticket #2679 (closed bug: fixed)

Opened 8 months ago

Last modified 7 months ago

slider performance problem

Reported by: therve Assigned to: joern
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords:
Cc: Needs: Patch

Description

Using latest version of UI (1.5b2), I have seen a big performance problem with the slider: moving it feels really sluggish.

I have profiled the script and most of the time is spent in the css function. It seems this is called by handleSize for each mouse move (it calls outerWidth/outerHeight).

I don't know all the corner cases, but this width is fixed for me so it's totally useless to calculate it each time. This should be cached during initialization, if possible.

Attachments

slide.diff (1.7 kB) - added by therve 8 months ago.
Patch fixing my problem

Change History

Changed 8 months ago by therve

Patch fixing my problem

Changed 8 months ago by therve

I attached a patch that solved the problem for me.

Changed 8 months ago by paul

  • owner changed from paul to joern

Changed 7 months ago by paul

  • status changed from new to closed
  • resolution set to fixed

Fixed in r5400.

Note: See TracTickets for help on using tickets.