From cbc44643c70611283a28d5d20e100d199e2bf134 Mon Sep 17 00:00:00 2001 From: Benjamin Summers Date: Sat, 14 Mar 2020 10:28:46 -0700 Subject: [PATCH] urbit-atom: More TODO --- pkg/hs/urbit-atom/TODO.md | 13 +++---------- pkg/hs/urbit-atom/package.yaml | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/pkg/hs/urbit-atom/TODO.md b/pkg/hs/urbit-atom/TODO.md index 06e1da24f..a749d53cf 100644 --- a/pkg/hs/urbit-atom/TODO.md +++ b/pkg/hs/urbit-atom/TODO.md @@ -1,10 +1,3 @@ -- Use atomBytes instead of exportBytes where faster. - - `exportBytes` is slower, use `atomBytes` where possible. - - Only works for little-endian. - - Doesn't work in GHCJS. - -- Use bytesAtom instead of importBytes where faster. - - `importBytes` is always faster. Always use it. - - (Why slower, tho?) - -- Get this working with `integer-simple` (for Android). +- Support big-endian CPUs (CPP flag; use GMP import/export) +- Support `integer-simple`. (Android) +- Understand why my hand rolled import is slower than GMP import. diff --git a/pkg/hs/urbit-atom/package.yaml b/pkg/hs/urbit-atom/package.yaml index 10dfba137..970f44580 100644 --- a/pkg/hs/urbit-atom/package.yaml +++ b/pkg/hs/urbit-atom/package.yaml @@ -30,17 +30,6 @@ executables: - base - urbit-atom -benchmarks: - urbit-atom-bench: - source-dirs: bench - main: Main.hs - ghc-options: "-threaded -rtsopts -with-rtsopts=-N" - dependencies: - - base - - bytestring - - criterion - - urbit-atom - tests: urbit-atom-tests: source-dirs: test @@ -54,6 +43,17 @@ tests: - urbit-atom - vector +benchmarks: + urbit-atom-bench: + source-dirs: bench + main: Main.hs + ghc-options: "-threaded -rtsopts -with-rtsopts=-N" + dependencies: + - base + - bytestring + - criterion + - urbit-atom + default-extensions: - ApplicativeDo - BangPatterns