[haiku-bugs] Re: [Haiku] #16031: MediaPlayer uses too much RAM?

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 08 Jun 2020 20:49:38 -0000

#16031: MediaPlayer uses too much RAM?
-----------------------------+----------------------------
  Reporter:  miqlas          |      Owner:  nobody
      Type:  bug             |     Status:  new
  Priority:  normal          |  Milestone:  Unscheduled
 Component:  Kits/Media Kit  |    Version:  R1/Development
Resolution:                  |   Keywords:
Blocked By:                  |   Blocking:
  Platform:  All             |
-----------------------------+----------------------------
Comment (by ttcoder):

 However, the same test ran on an mp3 with a tiny Album Art pic yields
 this:

 {{{
 $ cat bmedia_result | sort | uniq

 ------done decoding file-------
 total allocations: 5114; total bytes: 774543
 (..)
 total allocations: 5700; total bytes: 959167
 total allocations: 5701; total bytes: 959255
 total allocations: 5703; total bytes: 959431
 }}}

 I.e. 959431 - 774543 = 184888 bytes

 With a bigger JPEG album art pic:

 {{{
 total allocations: 5114; total bytes: 774559
 (..)
 total allocations: 5711; total bytes: 1436471
 }}}

 So there a few kilobytes in play for each run indeed. Not the end of the
 world but will be worth me trying to build the (patched) ffmpeg add-on on
 x64 (never tried a build other than on x32 so far). I'll place it in
 {{{/system/non-packaged/add-ons/media/plugins/}}} and see how it
 behaves... and if it gets picked up by my test-case program.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16031#comment:10>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: