IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 19 years ago

Last modified 16 years ago

#1006 assigned enhancement

psMetadataItemAlloc() allocates an empty string for comments

Reported by: jhoblitt Owned by: eugene
Priority: low Milestone:
Component: PSLib Version: unspecified
Severity: minor Keywords:
Cc:

Description

If the comment field is not used, the allocator assigns an "empty string". This wastes the sizeof(psMemBlock) * n psMetadataItem's without a commment (virtually all of them). psMemBlock is ~100 byte structure so this is wasting a fair ammount of memory. The code & SDRS should be changed so that "no comment" equates to psMetadataItem.comment = NULL.

Change History (1)

comment:1 by eugene, 16 years ago

Component: typesPSLib
Owner: changed from jhoblitt to eugene
Priority: highlow
Status: newassigned
Note: See TracTickets for help on using tickets.