There are still problem with performance, after some experiments i distilled it to next case:
Execution of time math/sieve 1000000 >/dev/null takes about 170 secs
time math/sieve 1000000 >/dev/null
Execution of modified math/sieve with commented print() takes only about 3 secs.
math/sieve
print()
So there is a real problem of using syscalls which operates with filesystems. (because even print()/fprint() leads to kwrite() syscall)
print()/fprint()
kwrite()
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Performance, loop 2
There are still problem with performance, after some experiments i distilled it to next case:
Execution of
time math/sieve 1000000 >/dev/null
takes about 170 secs
Execution of modified
math/sieve
with commentedprint()
takes only about 3 secs.So there is a real problem of using syscalls which operates with filesystems. (because even
print()/fprint()
leads tokwrite()
syscall)