Mercurial > pidgin.yaz
view gaim.desktop @ 12229:18f0dadb29cf
[gaim-migrate @ 14531]
SF Patch #1366481 from Michael Carlson
"The function gtk_smiley_tree_insert() in gtkimhtml.c is
using up (on my system) the most CPU of all the
functions in gaim whenever the preferences box is
opened (tested by opening the preferences box 50 times
and measuring with oprofile).
The function is called some 297 times each time the
prefs box is opened, and each time we call strlen() on
a (usually 3 or 4) character string to see if the
string is empty or not.
I've eliminated the unnecessary call to strlen by
checking the first element, and I've changed the while
{} loop to a do {} while loop, because since we return
if the string is empty at the beginning of the
function, the same check on the first iteration of the
loop is unnecessary.
I believe it's faster for every case, even if only by a
little bit."
I don't know how necessary this is, but it doesn't hurt and it doesn't negatively impact the readability of the code.
I also fixed an existing piece of code for which the compiler issued a warning.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 26 Nov 2005 17:09:29 +0000 |
parents | 391acec18e46 |
children | 5adc0c9da9f3 |
line wrap: on
line source
[Desktop Entry] Encoding=UTF-8 Categories=Application;Network; Exec=gaim Icon=gaim.png StartupNotify=true Terminal=false Type=Application Name=Gaim Internet Messenger Name[ca]=Missatger d'Internet Gaim Name[cs]=Gaim Internet Messenger Name[da]=Gaim - internet beskeder Name[de]=Gaim Internet Messenger Name[es]=Gaim - cliente de mensajería de Internet Name[fr]=Gaim Messagerie Internet Name[hu]=Gaim azonnali üzenetküldő Name[it]=Gaim Internet Messenger Name[ja]=Gaim インターネット・メッセンジャー Name[ko]=게임 메신저 Name[nb]=Gaim lynmeldingsklient Name[nl]=Gaim - Expresberichten Name[pl]=Komunikator Internetowy Gaim Name[pt_BR]=Mensageiro via Internet Gaim Name[pt]=Mensageiro Internet Gaim Name[ro]=Mesagerul Gaim Name[ru]=Gaim - клиент обмена мгновенными сообщениями Name[sl]=Gaim - spletni sel Name[sq]=Lajmësjellësi Internet Gaim Name[sv]=Gaim Internet Messenger Name[zh_CN]=Gaim 互联网通讯程序 Name[zh_TW]=Gaim 網路即時通 GenericName=Internet Messenger GenericName[ca]=Missatger d'Internet GenericName[cs]=Internet Messenger GenericName[da]=Internet beskeder GenericName[de]=Internet Messenger GenericName[es]=Cliente de mensajería de Internet GenericName[fr]=Messagerie internet GenericName[hu]=Azonnali üzenetküldő GenericName[it]=Internet Messenger GenericName[ja]=インターネット・メッセンジャー GenericName[ko]=메신저 GenericName[nb]=Lynmeldingsklient GenericName[nl]=Expresberichten GenericName[pl]=Komunikator Internetowy GenericName[pt_BR]=Mensageiro via Internet GenericName[pt]=Mensageiro Internet GenericName[ro]=Client de mesagerie GenericName[ru]=Клиент обмена мгновенными сообщениями GenericName[sl]=Spletni sel GenericName[sq]=Lajmësjellës Internet GenericName[sv]=Meddelandeklient GenericName[zh_CN]=互联网通讯程序 GenericName[zh_TW]=網路即時通 Comment=Send instant messages over multiple protocols Comment[ca]=Envieu missatges instantanis en múltiples protocols Comment[cs]=Posílat instant message různými protokoly Comment[da]=Send beskeder over flere protokoller Comment[de]=Multi-Protokoll Instant Messenger Client Comment[es]=Cliente de mensajería instantánea multiprotocolo Comment[fr]=Envoie des messages instantanés en utilisant divers protocoles Comment[hu]=Azonnali üzenetküldés többféle protokoll használatával Comment[it]=Client multiprotocollo per messaggi immediati Comment[ja]=複数のプロトコルを介してインスタント・メッセージを送信します Comment[ko]=다중 프로토콜 메신저 Comment[nb]=Send lynmeldinger over flere protokoller Comment[nl]=Multi-protocol programma voor expresberichten Comment[pl]=Komunikator internetowy obsługujący kilka protokołów Comment[pt_BR]=Mande mensagens instantâneas por múltiplos protocolos Comment[pt]=Envie mensagens instantâneas sobre vários protocolos Comment[ro]=Trimiteţi mesaje instant în orice reţea Comment[ru]=Обмен мгновенными сообщениями с использованием множества протоколов Comment[sl]=Pošiljajte neposredna sporočila prek različnih protokolovs Comment[sq]=Dërgoni mesazhe të atypëratyshëm protokollesh të ndryshëm Comment[sv]=Sänder snabbmeddelande över många protokoll Comment[zh_CN]=通过多种协议发送即时消息 Comment[zh_TW]=透過多種通訊協定發送即時訊息