snarlydwarf;184320 Wrote: > Well you open the whole file, but use lseek/fseek/whatever to seek to > the part you want. > > Thats why id3 tags are at either the beginning or end of the file: it > saves a ton of processing if you can ignore most of the file. > > (There are two schools of thought on whether the beginning or end is > better... beginning is great for fixed-length data, since it can be > found so easily... but if it "grows" you have to move everything after > it... so most beginning-tag-writers use padding to keep some room for > changes. End doesnt have that problem, but finding the tag backwards > is harder.)
Then if you have to open to whole file, you have to bring the whole file over the network to load into memory. Using 10MB per file as an example, it would take my NSLU2 85 minutes to send the files to the PC for Slimserver to process -- which is more or less the time it takes for a scan on my system. -- jonheal Jon Heal says: Have a nice day! http://www.theheals.org/ ~~~ SB3 (wired - 6.3.1) | Home-brew PC running XP Pro | DENON DRA-395 | PSB Stratus Bronze (2) | Outlaw Audio LFM-2 (1) | DIY Speaker Cables | Dayton Audio Interconnects ------------------------------------------------------------------------ jonheal's Profile: http://forums.slimdevices.com/member.php?userid=2133 View this thread: http://forums.slimdevices.com/showthread.php?t=33041 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
