Comments (4)
@lh3 or @Benjamin-Lee could we reopen this issue?
it doesn't use -d:danger:
for eg: https://github.com/lh3/biofast/blob/master/fqcnt/Makefile (ditto with https://github.com/lh3/biofast/blob/master/bedcov/Makefile)
fqcnt_nim1_klib:fqcnt_nim1_klib.nim ../lib/klib.nim
$(NIM) c -d:release -d:nimEmulateOverflowChecks --bound_checks:off -p:../lib -o:$@ $<
we should rerun the benchmarks for nim with
$(NIM) c -d:danger -p:../lib -o:$@ $<
EDIT
running on a docker container, I get:
nim c -d:release -d:nimEmulateOverflowChecks --bound_checks:off -o:/tmp/z01 -p:../lib bedcov_nim1_klib.nim
time /tmp/z01 biofast-data-v1/ex-rna.bed biofast-data-v1/ex-anno.bed >/dev/null
8.927s
with s/-d:release -d:nimEmulateOverflowChecks --bound_checks:off/-d:danger/
I get:
6.792s
with -d:danger --passc:-flto
I get:
6.383s
with -d:danger --gc:arc
I get:
5.90s
interpolating linearly, this would give:
echo 'echo 16.6 / (8.927 / 6.38) ' | nim r -
11.1 instead of 16.6 in this line of https://github.com/lh3/biofast:
bedcov_nim1_klib.nim | Nim | 16.6 | 248.4 | 26.0 | 34.1
from biofast.
See Makefile in individual directory.
from biofast.
Completely missed that. Thanks!
from biofast.
It must have completely slipped my mind when I looked at the makefile. -d:danger --gc:arc
is the right way to compile the code. It's what I use every day in my bioinformatics research using Nim.
from biofast.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biofast.