After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 598761 - [mpegaudioparse] Reduce processing time by 2
[mpegaudioparse] Reduce processing time by 2
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other Linux
: Normal enhancement
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-17 11:50 UTC by Edward Hervey
Modified: 2009-10-24 18:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpegaudioparse: Don't use expensive glib ways to get an enum nick. (3.92 KB, patch)
2009-10-17 11:50 UTC, Edward Hervey
none Details | Review

Description Edward Hervey 2009-10-17 11:50:04 UTC
50% of the processing time is spent... getting the nick for the mode enumeration through the "oh so efficient" glib system.

Proposed patch just does gets it from our local code.
Comment 1 Edward Hervey 2009-10-17 11:50:33 UTC
Created attachment 145657 [details] [review]
mpegaudioparse: Don't use expensive glib ways to get an enum nick.

This removes a good 50% of processing time for parsing a buffer.

We do this by simply... getting the nicks that we already have handy
instead of going through the expensive glib system.
Comment 2 Sebastian Dröge (slomo) 2009-10-17 15:03:47 UTC
Hah, that's scary :) Patch looks good
Comment 3 Edward Hervey 2009-10-18 06:47:37 UTC
I didn't mark this as a blocker btw, since the mpeg parsing itself is minimal to start with... so over the full process that gain isn't *that* impressive on desktop computers.

Maybe it would be of interest to embedded devices though.

I'm not gonna push for it to go in. If Jan thinks it should go in, then fine, else it can wait.
Comment 4 Edward Hervey 2009-10-24 18:39:03 UTC
commit 33b4528a0ee79ff10475d2aa07d6783553c40cf5
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Sat Oct 17 13:46:13 2009 +0200

    mpegaudioparse: Don't use expensive glib ways to get an enum nick.
    
    Fixes #598761
    
    This removes a good 50% of processing time for parsing a buffer.
    
    We do this by simply... getting the nicks that we already have handy
    instead of going through the expensive glib system.