Skip to content

Commit 36a565a

Browse files
authored
[ruby/rack] Don't use async_thread_pool (#9466)
Not using async_thread_pool seems faster: +-------------------------+---------+------+------+-----+-----+-------+--------------+ | branch_name|plaintext|update| json| db|query|fortune|weighted_score| +-------------------------+---------+------+------+-----+-----+-------+--------------+ | master| 101265| 13921|113730|33371|24701| 28719| 1794| |disable-async-thread-pool| 102381| 13441|126911|40248|28379| 43834| 1928|
1 parent a18e737 commit 36a565a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

frameworks/Ruby/rack/pg_db.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ class PgDb
1919

2020
def initialize(connection_string = nil, max_connections = 512)
2121
@connection = Sequel.connect(connection_string, max_connections: max_connections, sql_log_level: :warning)
22-
if defined?(Falcon)
23-
Sequel.extension :fiber_concurrency if defined?(Falcon)
24-
else
25-
@connection.extension :async_thread_pool
26-
end
22+
Sequel.extension :fiber_concurrency if defined?(Falcon)
2723

2824
prepare_statements
2925
end

0 commit comments

Comments
 (0)