Bitcoin Forum
May 11, 2024, 08:50:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Оптимизация проверки хэша  (Read 1382 times)
ArsenShnurkov (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1000



View Profile
May 13, 2012, 12:53:55 AM
 #1

Основной тормоз при загрузке блоков - это не база данных, а openssl.
Оптимизация проверки хэша дает ускорение в 3-6 раз без проблем.

Я правильно понимаю, что эти хеши ищутся на видеокартах и FPGA,
а вот при загрузке так делать никто не умеет и пользуются только CPU ?
1715417409
Hero Member
*
Offline Offline

Posts: 1715417409

View Profile Personal Message (Offline)

Ignore
1715417409
Reply with quote  #2

1715417409
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715417409
Hero Member
*
Offline Offline

Posts: 1715417409

View Profile Personal Message (Offline)

Ignore
1715417409
Reply with quote  #2

1715417409
Report to moderator
1715417409
Hero Member
*
Offline Offline

Posts: 1715417409

View Profile Personal Message (Offline)

Ignore
1715417409
Reply with quote  #2

1715417409
Report to moderator
Balthazar
Legendary
*
Offline Offline

Activity: 3108
Merit: 1358



View Profile
May 13, 2012, 01:10:15 AM
 #2

При загрузке цепочки блоков из образа на диске считается хэш заголовка каждого из блоков и проверяется на соответствие прописанному в заголовке блока nBits. Это делается для контроля целостности цепочки блоков на диске и да, делается на CPU. Но и на CPU эту задачу можно решить быстрее, чем в текущей реализации.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!