<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] Unified cache for
Misc</title></head><body>
<div>Whoops, I'm just about to check in a unified cache!</div>
<div><br></div>
<div>Essentially it's what you proposed, but rather than the NOGENRE,
MP3TAG and MP3INFO that information is figured out with some logic
from the other existing fields.</div>
<div><br></div>
<div>VOLUME, PATH, FILE and EXTENSION are also missing, as they are
easily calculated from the path. </div>
<div><br></div>
<div>Here are my comments, I'm doing a little testing before I
commit:</div>
<div><br></div>
<div>Cleanup of Misc.pm.<br>
<br>
All of our song/playlist/directory information is now in a single
cache,<br>
called simply the infoCache, which should save us some memory.<br>
<br>
The infoCache is attached to the DB archive, when turned on.<br>
<br>
When the DB is turned off, we don't populate it anymore, which should
save <br>
considerable memory.<br>
</div>
<div><br></div>
<blockquote type="cite" cite>This is a proposal to replace the
following hashes with one unified hash.<br>
%contentTypeCache<br>
%fileLengthCache<br>
%mp3infoCache<br>
%mp3tagCache<br>
<br>
Comments are welcome from everyone. We could probably even roll
the <br>
playlistCache and playlistAgeCache from Scan.pm into this, but we
would <br>
probably want to exclude them from being persisted.<br>
<br>
It would be a hash of hashes like the mp3info and mp3tag are
currently.<br>
The primary key would be the absolute path (just like it currently is)
and <br>
it would have the following subkeys (with explanations) The
subkeys are <br>
literal strings and are not necessarily present for each file.<br>
<br>
TYPE (corresponds to entry in contentTypeCache)<br>
NOGENRE (exists if cache entry should not be used in genre cache,
separate <br>
from TYPE so that remote streamed mp3's can be excluded from genre
cache)<br>
<br>
MP3TAG (exists if mp3tag info has been extracted for file or if
it should <br>
not be extracted)<br>
TITLE (from mp3tag or extensionless filename for playlists and
shortcuts, <br>
or name of directory)<br>
ARTIST (from mp3tag)<br>
ALBUM (from mp3tag)<br>
GENRE (from mp3tag)<br>
YEAR (from mp3tag)<br>
COMMENT (from mp3tag)<br>
TRACKNUM (from mp3tag)<br>
<br>
MP3INFO (exists if mp3info has been extracted for file or if it should
not <br>
be extracted)<br>
VERSION (from mp3info)<br>
LAYER (from mp3info)<br>
STEREO (from mp3info)<br>
VBR (from mp3info)<br>
BITRATE (from mp3info)<br>
FREQUENCY (from mp3info)<br>
SIZE (from mp3info)<br>
SECS (from mp3info)<br>
MM (from mp3info)<br>
SS (from mp3info)<br>
MS (from mp3info)<br>
TIME (from mp3info)<br>
COPYRIGHT (from mp3info)<br>
PADDING (from mp3info)<br>
MODE (from mp3info)<br>
FRAMES (from mp3info)<br>
FRAME_LENGTH (from mp3info)<br>
VBR_SCALE (from mp3info)<br>
<br>
VOLUME (volume portion of splitpath)<br>
PATH (path portion of splitpath)<br>
FILE (file portion of splitpath, without the file extension)<br>
EXTENSION (file extension)<br>
<br>
LENGTH (corresponds to entry in fileLengthCache)<br>
<br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--><br>
Sponsored by VeriSign - The Value of Trust<br>
Secure all your Web servers now - with a proven 5-part<br>
strategy. The FREE Server Security Guide shows you how.<br>
http://us.click.yahoo.com/iWSNbC/VdiDAA/yigFAA/rIp0lB/TM<br>
---------------------------------------------------------------------<span </span>~-><br>
<br>
To unsubscribe from this group, send an email to:<br>
slimp3-dev-unsubscribe-***@public.gmane.org</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite> </blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ </blockquote>
<div><br></div>
</body>
</html>