Bug 429

Summary: Tag bitfields instead of what we have now
Product: BpmDj - old linux tools Reporter: Werner Van Belle <wernerol>
Component: selectorAssignee: Werner Van Belle <werner>
Status: ASSIGNED ---    
Severity: enhancement CC: werner
Priority: Future    
Version: 3.0   
Hardware: PC   
OS: Linux   

Comment 3 Werner Van Belle 2009-11-22 21:53:26 CET
*** Bug 759 has been marked as a duplicate of this bug. ***
Comment 2 Werner Van Belle 2009-01-01 20:04:11 CET
This has not been fixed at all. We still work with a pointer to tags.
Comment 1 Werner Van Belle 2007-10-27 18:24:58 CEST
If we have 256 different tags for all songs then we need 32 bytes per song to store this information if we would use a bit pattern. 

At the moment we store each tag as a pointer to tags (which are of type unsigned2). So if we have 1.5 tags per song we get 11 bytes per song.

If we have 20000 songs this change would result in 410kB extra memory. This memory must be accessed when scanning for songs so the question is whether this would indeed go faster. Probably not, since we have now very few checks for each song.
Description Werner Van Belle 2005-07-24 06:59:01 CEST