pgAdmin III commit: Fix freeze of UI when querytool has an error on a q

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема pgAdmin III commit: Fix freeze of UI when querytool has an error on a q
Дата
Msg-id E1Sq1je-000896-Se@gothos.postgresql.org
обсуждение исходный текст
Список pgadmin-hackers
Fix freeze of UI when querytool has an error on a query

We call too many times the GetCharAt() and the GetText().Length() methods.
This fix calls GetCharAt() once per loop (instead of five times per loop), and
GetText().Length() once only (instead of once per loop). My testing shows no
freeze at all with a 4000 lines of SQL code.

Report per Evan Martin.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=525e7f51434bd52716c0a4fb655e3038a21ef457

Modified Files
--------------
pgadmin/frm/frmQuery.cpp |   13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Vinicius Santos
Дата:
Сообщение: Re: More information about the selected objects
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: pgAdmin III commit: Fix freeze of UI when querytool has an error on a q