<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Times New Roman, serif" size="2">
<div> </div>
<div><font color="#4F81BD">Hi, Dear,</font></div>
<div><font color="#4F81BD"> We used taglib do mp3 file parsing, the number of parse files we need is very bigger, about 5000. We need to do this task as quick as possible. So we meet a problem about performace. </font></div>
<div><font color="#4F81BD"> </font></div>
<div><font color="#4F81BD"> We checked the issue and found that much time was wasted when file fopen and fread. We think this is caused by fileIO. So we used mmap instread of fopen/fread/fwrite when OS is linux, and got the result that the performance was
increased about 25%. </font></div>
<div><font color="#4F81BD"> </font></div>
<div><font color="#4F81BD"> But, as we all know, when using file mmap, the memory which the process need is equal to the size of file. For example, when the filesize is 1G, the process need 1G memory for file mmap. This is intolerable. So we add a condition.
When filesize is smaller than 10M, we use mmap, others we use fopen which the taglib use now. </font></div>
<div><font color="#4F81BD"> </font></div>
<div><font color="#4F81BD"> So, What about the method of using mmap, is it acceptable? We had done this change and passed the tests which taglib provide. </font></div>
<div><font color="#4F81BD"> </font></div>
<div><font color="#4F81BD"> Waiting for your news, thanks very much</font></div>
<div><font color="#4F81BD"> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#4F81BD">B&R</font></div>
<div><font face="Arial, sans-serif" size="2" color="#4F81BD">yaowj</font></div>
<div> </div>
<div> </div>
</font>
</body>
</html>