diff --git a/docs/todo/hbs2-git-recursive-deps.txt b/docs/todo/hbs2-git-recursive-deps.txt new file mode 100644 index 00000000..198c6e2c --- /dev/null +++ b/docs/todo/hbs2-git-recursive-deps.txt @@ -0,0 +1,5 @@ +TODO: asap-git-recursive-sql-query-for-deps + Сейчас зависимости хранятся как связь один объект - все зависимые объекты транзитивно, + что сильно раздувает БД. В sqlite3 работают рекурсивные запросы, так что можно + хранить один уровень (объект, зависимый объект) и не хранить все + зависимости транзитивно. Это сократит размер стейта и ускорит запись. diff --git a/docs/todo/rtt-on-ping.txt b/docs/todo/rtt-on-ping.txt new file mode 100644 index 00000000..2482bf32 --- /dev/null +++ b/docs/todo/rtt-on-ping.txt @@ -0,0 +1 @@ +TODO: measure-rtt-on-ping diff --git a/hbs2-core/lib/HBS2/Defaults.hs b/hbs2-core/lib/HBS2/Defaults.hs index db2226ae..fcb0de41 100644 --- a/hbs2-core/lib/HBS2/Defaults.hs +++ b/hbs2-core/lib/HBS2/Defaults.hs @@ -13,7 +13,7 @@ defMessageQueueSize :: Integral a => a defMessageQueueSize = 65536*10 defBurst :: Integral a => a -defBurst = 8 +defBurst = 2 defBurstMax :: Integral a => a defBurstMax = 64 @@ -70,18 +70,18 @@ defBlockWipTimeout :: TimeSpec defBlockWipTimeout = defCookieTimeout defBlockInfoTimeout :: Timeout 'Seconds -defBlockInfoTimeout = 60 +defBlockInfoTimeout = 20 defBlockInfoTimeoutSpec :: TimeSpec defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout -- how much time wait for block from peer? defBlockWaitMax :: Timeout 'Seconds -defBlockWaitMax = 120 :: Timeout 'Seconds +defBlockWaitMax = 20 :: Timeout 'Seconds -- how much time wait for block from peer? defChunkWaitMax :: Timeout 'Seconds -defChunkWaitMax = 60 :: Timeout 'Seconds +defChunkWaitMax = 10 :: Timeout 'Seconds defSweepTimeout :: Timeout 'Seconds defSweepTimeout = 60 -- FIXME: only for debug!