Bitcoin Forum
May 05, 2024, 03:41:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Tiny optimization?  (Read 788 times)
Wolf0 (OP)
Member
**
Offline Offline

Activity: 81
Merit: 1002


It was only the wind.


View Profile
March 07, 2013, 04:51:46 AM
Last edit: October 16, 2018, 03:30:00 AM by Wolf0
 #1

NaN.
1714880490
Hero Member
*
Offline Offline

Posts: 1714880490

View Profile Personal Message (Offline)

Ignore
1714880490
Reply with quote  #2

1714880490
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714880490
Hero Member
*
Offline Offline

Posts: 1714880490

View Profile Personal Message (Offline)

Ignore
1714880490
Reply with quote  #2

1714880490
Report to moderator
1714880490
Hero Member
*
Offline Offline

Posts: 1714880490

View Profile Personal Message (Offline)

Ignore
1714880490
Reply with quote  #2

1714880490
Report to moderator
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
March 07, 2013, 08:10:39 AM
 #2

I was just reading all the threads about mining basically being SHA256, and something came to me. Having written a (mostly) working SHA224/SHA256/SHA384/SHA512 implementation myself, I'm intimately familiar with how it works. Now, to create a valid block, we just need a block header whose hash is under the target, correct? This means we can skip some of the last parts of SHA256, that is, computing the rest of the hash, which doesn't really matter. Now, I realize that this is really tiny, just a few adds IIRC, but even a clock cycle per hash is precious when computing so many of them.

Not sure regarding BTC miners but LTC ones already applied such a trick.
-ck
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
March 07, 2013, 09:27:03 AM
 #3

That optimisation is done on every serious mining software.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
March 07, 2013, 09:47:37 AM
 #4

There's a lot of open source mining software and this optimization is most likely part of all of them. Check out the mining software forum! Smiley

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
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!