Re: Reduce delay in keypress (input) in Query Tool - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Reduce delay in keypress (input) in Query Tool
Date
Msg-id CA+OCxozXvpFZQtfEenR3LU2EY5ZYY8PsuW3P1aOovyQaThLPMw@mail.gmail.com
Whole thread Raw
In response to Reduce delay in keypress (input) in Query Tool  (Dhiraj Chawla <dhiraj.chawla@enterprisedb.com>)
Responses Re: Reduce delay in keypress (input) in Query Tool  (Dhiraj Chawla <dhiraj.chawla@enterprisedb.com>)
List pgadmin-hackers
Thanks, patch applied.

On Mon, Nov 5, 2012 at 2:38 PM, Dhiraj Chawla
<dhiraj.chawla@enterprisedb.com> wrote:
> Hi Dave,
>
> It has been noticed that on certain systems, that typing into the Query Tool
> is extremely slow and characters get printed very slowly. The probable
> reason behind this is on each key press in Query Tool OnChangeStc() gets
> called in frmQuery which in turn calls updateMenu(). In updateMenu() we call
> the canSaveAsImage(), which internally updates the ModelSize of GQB with the
> updateModelSize() function.
>
> Attached is the patch that fixes this issue by disabling the call to
> canSaveAsImage() when called updateMenu() is called from OnChangeStc(). In
> this way the model size of GQB won't get updated on press of each key.
>
> Let me know views/thoughts on the same.
>
> Thanks,
>
> --
> regards,
>
> Dhiraj Chawla
> Software Engineer
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>
> Phone: +91-20-30589522
>
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin III commit: Avoid updating the GQB model on every key press in
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Fix dropping/renaming of indexes