5.2.23
12/09/2023

[#116] Big CPU usage with base64 encoding
Summary Big CPU usage with base64 encoding
Queue gloox
Queue Version 0.9.9.5
Type Bug
State Unconfirmed
Priority 1. Low
Owners
Requester hanzz.k (at) gmail (dot) com
Created 02/08/2009 (5417 days ago)
Due
Updated 02/08/2009 (5417 days ago)
Assigned
Resolved

History
02/08/2009 12:34:23 PM hanzz (dot) k (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Big CPU usage with base64 encoding
Queue ⇒ gloox
New Attachment: base64.cpp
Reply to this comment
Hi,
I'm making jabber transport which was using base64 class from gloox. 
Problem is that gloox base64 class is not very well coded and has very 
big cpu usage. Fro example adding chars to std::string by append 
function is not so fast :). I have written only encode function, 
because I just need to encode avatars from legacy network to jabber. 
Feel free to use this one or write something like this :).