Project

General

Profile

Actions

Feature #574

open

Using putUint16() et al. is not very efficient when adding new values

Added by Jörg Riesmeier almost 12 years ago. Updated almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Library
Target version:
-
Start date:
2013-10-29
Due date:
% Done:

0%

Estimated time:
Module:
dcmdata, dcmsr and other?
Operating System:
Compiler:

Description

As far as I can see, the putUint16() and related methods are not very efficient when adding new values. This should be changed since these putXXX() methods are e.g. using within the "dcmsr" module quite intensively.

Actions #1

Updated by Jörg Riesmeier almost 12 years ago

  • Priority changed from Low to Normal

One simple approach could be a new method that would allow for reserving a memory buffer for the value field if its size is known in advance (which is quite ofen the case, e.g. when filling in values in a for/while-loop).

In fact, there is already a method that could be used for this purpose: DcmElement::createEmptyValue(const Uint32 length). However, this method is currently "protected", i.e. it can only be used by derived classes.

Actions #2

Updated by Jörg Riesmeier almost 12 years ago

One simple approach could be a new method that would allow for reserving a memory buffer for the value field if its size is known in advance (which is quite ofen the case, e.g. when filling in values in a for/while-loop).

Actions

Also available in: Atom PDF