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 , 16 years ago
| Component: | types → PSLib |
|---|---|
| Owner: | changed from to |
| Priority: | high → low |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
