Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1691467 - Qpid python client takes too long time to decode an AMQP/MAP content.
Summary: Qpid python client takes too long time to decode an AMQP/MAP content.
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: python-qpid
Version: 3.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: Messaging QE
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-21 16:36 UTC by Barbora Vassova
Modified: 2019-03-21 16:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)
python decoder example (deleted)
2019-03-21 16:36 UTC, Barbora Vassova
no flags Details
cpp decoder example (deleted)
2019-03-21 16:37 UTC, Barbora Vassova
no flags Details

Description Barbora Vassova 2019-03-21 16:36:40 UTC
Created attachment 1546621 [details]
python decoder example

Description of problem:
When using qpid python client, decoding an AMQP message takes considerably longer time than using c++ client

Version-Release number of selected component (if applicable):
qpid-cpp-client-1.36.0-15.el6.x86_64 or qpid-cpp-client-1.36.0-20.el6_10.x86_64

How reproducible:

Steps to Reproduce:
Use the attached scripts with ~11mb message ("sample_message") in the same directory and compare the times (content print out was edited out):

[root@bvassova-mrg decode]# time python 
real	6m50.005s
user	6m47.138s
sys	0m0.301s

[root@bvassova-mrg decode]# time ./CppAmqpMsgDecoder
File size is 11759031 bytes.

real	0m1.836s
user	0m1.607s
sys	0m0.134s

with uncommented printing out the file content (for fairness) cpp decoder got
real	0m3.407s
user	0m1.846s
sys	0m0.173s

Actual results:
The result time should be approximately similar

Expected results:
The python decoder is considerably slower than c++ decoder

Comment 1 Barbora Vassova 2019-03-21 16:37:05 UTC
Created attachment 1546622 [details]
cpp decoder example

Note You need to log in before you can comment on or make changes to this bug.