mirror of https://github.com/voidlizard/hbs2
fixme
This commit is contained in:
parent
343bfd6070
commit
60e420f668
|
@ -0,0 +1,5 @@
|
||||||
|
TODO: asap-git-recursive-sql-query-for-deps
|
||||||
|
Сейчас зависимости хранятся как связь один объект - все зависимые объекты транзитивно,
|
||||||
|
что сильно раздувает БД. В sqlite3 работают рекурсивные запросы, так что можно
|
||||||
|
хранить один уровень (объект, зависимый объект) и не хранить все
|
||||||
|
зависимости транзитивно. Это сократит размер стейта и ускорит запись.
|
|
@ -0,0 +1 @@
|
||||||
|
TODO: measure-rtt-on-ping
|
|
@ -13,7 +13,7 @@ defMessageQueueSize :: Integral a => a
|
||||||
defMessageQueueSize = 65536*10
|
defMessageQueueSize = 65536*10
|
||||||
|
|
||||||
defBurst :: Integral a => a
|
defBurst :: Integral a => a
|
||||||
defBurst = 8
|
defBurst = 2
|
||||||
|
|
||||||
defBurstMax :: Integral a => a
|
defBurstMax :: Integral a => a
|
||||||
defBurstMax = 64
|
defBurstMax = 64
|
||||||
|
@ -70,18 +70,18 @@ defBlockWipTimeout :: TimeSpec
|
||||||
defBlockWipTimeout = defCookieTimeout
|
defBlockWipTimeout = defCookieTimeout
|
||||||
|
|
||||||
defBlockInfoTimeout :: Timeout 'Seconds
|
defBlockInfoTimeout :: Timeout 'Seconds
|
||||||
defBlockInfoTimeout = 60
|
defBlockInfoTimeout = 20
|
||||||
|
|
||||||
defBlockInfoTimeoutSpec :: TimeSpec
|
defBlockInfoTimeoutSpec :: TimeSpec
|
||||||
defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout
|
defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout
|
||||||
|
|
||||||
-- how much time wait for block from peer?
|
-- how much time wait for block from peer?
|
||||||
defBlockWaitMax :: Timeout 'Seconds
|
defBlockWaitMax :: Timeout 'Seconds
|
||||||
defBlockWaitMax = 120 :: Timeout 'Seconds
|
defBlockWaitMax = 20 :: Timeout 'Seconds
|
||||||
|
|
||||||
-- how much time wait for block from peer?
|
-- how much time wait for block from peer?
|
||||||
defChunkWaitMax :: Timeout 'Seconds
|
defChunkWaitMax :: Timeout 'Seconds
|
||||||
defChunkWaitMax = 60 :: Timeout 'Seconds
|
defChunkWaitMax = 10 :: Timeout 'Seconds
|
||||||
|
|
||||||
defSweepTimeout :: Timeout 'Seconds
|
defSweepTimeout :: Timeout 'Seconds
|
||||||
defSweepTimeout = 60 -- FIXME: only for debug!
|
defSweepTimeout = 60 -- FIXME: only for debug!
|
||||||
|
|
Loading…
Reference in New Issue