Hint: parseSql(...) in AbstractJdbc2Statement.java can be optimized performance-wise

Поиск
Список
Период
Сортировка
От rw2xg7h02@sneakemail.com
Тема Hint: parseSql(...) in AbstractJdbc2Statement.java can be optimized performance-wise
Дата
Msg-id 8477-27086@sneakemail.com
обсуждение исходный текст
Ответы Re: Hint: parseSql(...) in AbstractJdbc2Statement.java can be optimized performance-wise  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Hi,

Just wanted to let you know, that the parseSql(...)-method can be optimized quite a bit by removing the many calls to
p_sql.charAtand newsql.append. These could be replaced with local variables not requiring calls to be mutated (e.g.
localchar[]). I'm dealing with very long SQL-statements due to the use of Hibernate and parsing the SQL takes up quite
sometime - revealed by profiling tools. 

Just wanted to let you know, if you at some point would like to optimize the performance of the JDBC driver.

Thanks for you work on PostgreSQL.


Regards,
A user of the JDBC-driver in production environment

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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Problem escaping, nonstandard use of \\ in a string literal
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Hint: parseSql(...) in AbstractJdbc2Statement.java can be optimized performance-wise