<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1607" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>Manish,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>As I said in my first mail, I did it </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>1. disable many unused features<BR>2. disable 
debug/trace</FONT></SPAN><SPAN class=088000909-28022008><BR><FONT 
face="Courier New" color=#0000ff>3.&nbsp;use&nbsp;binary registry or not use 
registry</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>4. disable runtime check</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>most of changes are removing unused modules, it can reduce library 
obviously.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>gstreamer is flexible and easy configuable, I think you can use 
configure options or even your own marco to remove your 
unused.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>For performance, gstreamer core is just a part of whole 
performance, and most of it is represented at initialize, such as gst_init(), by 
my experience, gst_init does all initialization that gstreamer needs, but I 
think your application may not need all these features. Core elements library is 
also big, maybe some elements are not needed by yours. Your plugin performance 
is also very important, I think its impact is bigger than 
core's.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff>I think&nbsp;gstreamer can&nbsp;be optimized&nbsp;better, if you 
can share your trying, I think we&nbsp;can do it 
better.&nbsp;&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=088000909-28022008><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV class=Section1>
<P class=MsoNormal align=left><B><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">Best 
Regards<BR>Zhao <SPAN class=SpellE>Liang</SPAN> </SPAN></B><B><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">赵</SPAN></B><B><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> 
</SPAN></B><B><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">亮</SPAN></B><B><SPAN 
lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 12.0pt"><BR>Tel:86-10-84733698<BR></SPAN></B><B><SPAN 
lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt">No.1 
Wang <SPAN class=SpellE>Jing</SPAN> East Road, Chao Yang District, 
Beijing,</SPAN></B><B><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"> 
China 100102</SPAN></B><B><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt">&nbsp;<FONT 
face=宋体><BR></FONT></SPAN></B><B><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 12.0pt">北京市朝阳区望京东路</SPAN></B><B><SPAN 
lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt">1</SPAN></B><B><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 12.0pt">号</SPAN></B><B><SPAN 
lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-hansi-font-family: 宋体; mso-bidi-font-family: 宋体; mso-bidi-font-size: 12.0pt">, 
</SPAN></B><B><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial">100102</SPAN></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-FAMILY: 'Courier New'"><?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" 
/><o:p>&nbsp;</o:p></SPAN></B></P></DIV>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> 
gstreamer-embedded-bounces@lists.sourceforge.net 
[mailto:gstreamer-embedded-bounces@lists.sourceforge.net] <B>On Behalf Of 
</B>Manish Rana<BR><B>Sent:</B> Thursday, February 28, 2008 1:56 
PM<BR><B>To:</B> Zhao Liang-E3423C<BR><B>Cc:</B> 
gstreamer-embedded@lists.sourceforge.net<BR><B>Subject:</B> Re: [gst-embedded] 
How to reduce gstreamer library size &amp; startuptime<BR></FONT><BR></DIV>
<DIV></DIV>Hi Zhao, <BR><BR>If you could please tell the methods and options 
used by you to reduce the size and increase the performance in details.<BR>I am 
also working on the same but could not achieve it to any grate 
extent.<BR><BR>Your inputs can change the way i am trying.<BR><BR>Please 
help.<BR><BR>Thanks and Regards<BR>Manish Kumar<BR><BR>
<DIV class=gmail_quote>On Thu, Feb 28, 2008 at 7:20 AM, Zhao Liang-E3423C &lt;<A 
href="mailto:E3423C@motorola.com">E3423C@motorola.com</A>&gt; wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi 
  all,<BR><BR>As I am working on embedded device, my device has low cpu power, 
  but &nbsp;I<BR>want to develop some applications, such as ringtone, which 
  needs to<BR>launch gstreamer quickly.<BR>I find if we don't do any library 
  cutting down, the gstreamer core<BR>library is big, about 700-800 KB, but that 
  will not match my<BR>requirement, the time cost on loading library is 
  long.<BR>Another issue is that gst_init() cost much time.<BR><BR>So my goal is 
  to make the best of &nbsp;reducing gstreamer library size and<BR>gst_init() 
  time.<BR><BR>For library size cutting down, I have tried some ways, such 
  as<BR>1. disable many unused features<BR>2. disable debug<BR>3, not use xml 
  registry etc<BR>at last, the core library size is about 350KB<BR><BR>For 
  gst_init(), I also did some tunning on startup options, such as<BR>"disable 
  option parsing" etc.<BR><BR>But I think it is not the best that gstreamer can 
  reach, maybe there are<BR>many other ways to do these, so if we can share our 
  experience, I think<BR>we can get better result.<BR><BR>Appreciate for your 
  comments and reply.<BR><BR>thanks<BR><BR><BR>Best Regards<BR>Zhao 
  Liang<BR><BR>-------------------------------------------------------------------------<BR>This 
  SF.net email is sponsored by: Microsoft<BR>Defy all challenges. Microsoft(R) 
  Visual Studio 2008.<BR><A 
  href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" 
  target=_blank>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</A><BR>_______________________________________________<BR>Gstreamer-embedded 
  mailing list<BR><A 
  href="mailto:Gstreamer-embedded@lists.sourceforge.net">Gstreamer-embedded@lists.sourceforge.net</A><BR><A 
  href="https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded" 
  target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>