Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about EOSIO CPU concept, which is used to account for computational time required for processing transactions. Questions may relate to CPU allocation, usage reset, costs, optimisation, limitations, and others.
2
votes
1
answer
121
views
Does print() cost CPU cycles?
Does eosio::print cost CPU cycles to execute on the BPs?
On my node I have an option to print. … Assuming it is disabled for the BPs (print defined to return; or similar), does evaluating the arguments cost CPU cycles, e.g.
print("Hi", expensiveFunction()); …
2
votes
Accepted
Does print() cost CPU cycles?
print() appears to cost CPU cycles and expensiveFunction() is evaluated.
I tried with the following. …
1
vote
2
answers
174
views
Restricting runtime of a loop (Transaction took too long)
Can I obtain the max time I have remaining according to my staked CPU in my contract?
The avg. runtime per iteration depends on the BP hardware. … In the end I want to stop after n iterations with n = 0.9 x available CPU time / avg iteration time (0.9 is some safety margin). …