Ticket #4292 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

TimeSeriesProperty inefficiencies

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Wenduo Zhou

Description

Some of the methods in TimeSeriesProperty are very inefficient, stepping through the whole map unnecessarily. getSingleValue is a case in point - it could make use the multimap member function 'upper_bound' instead.

As part of the the unit test coverage should be improved (getSingleValue has no test at present).

Change History

comment:1 Changed 9 years ago by Wenduo Zhou

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Wenduo Zhou

Modify getSingleValue() for better efficiency. Refs #4292.

Changeset: 1cdbb761c561152ab4c24d8afca7fe3687c7c8e9

comment:3 Changed 9 years ago by Wenduo Zhou

  • Owner changed from Wenduo Zhou to Russell Taylor
  • Status changed from accepted to assigned

comment:4 Changed 9 years ago by Russell Taylor

  • Status changed from assigned to accepted

comment:5 Changed 9 years ago by Russell Taylor

Minor efficiency improvements. Re #4292.

Changeset: a57d67c543bd241c571679c08ce83f130b42bbd4

comment:6 Changed 9 years ago by Russell Taylor

  • Status changed from accepted to verify
  • Resolution set to fixed

Most other things look OK apart from those noted in the file - which would require a complete change in the way log filtering is done to improve upon.

Follow-up ticket #4409 has been created to enhance the unit test coverage.

comment:7 Changed 9 years ago by Wenduo Zhou

  • Status changed from verify to verifying
  • Tester set to Wenduo Zhou

comment:8 Changed 9 years ago by Wenduo Zhou

  • Status changed from verifying to closed

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5139

Note: See TracTickets for help on using tickets.