Created
May 12, 2014 05:12
-
-
Save lynaghk/a1f0416ed218848f7f16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;with adv. optimizations on my macbook air | |
(ns foo | |
(:require [datascript :as d])) | |
(d/q '[:find (sum ?x) | |
:with ?idx | |
:in [[?idx ?x]]] | |
(map-indexed vector (range 10000))) | |
;;takes about 800 ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment