This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-19
Channels
- # announcements (10)
- # aws (3)
- # aws-lambda (1)
- # babashka (24)
- # beginners (57)
- # boot (5)
- # calva (20)
- # chlorine-clover (3)
- # cider (14)
- # clj-kondo (37)
- # clojars (17)
- # clojure (200)
- # clojure-dev (40)
- # clojure-europe (9)
- # clojure-france (7)
- # clojure-gamedev (5)
- # clojure-hungary (4)
- # clojure-italy (8)
- # clojure-losangeles (2)
- # clojure-nl (9)
- # clojure-uk (97)
- # clojurebridge (1)
- # clojured (3)
- # clojuredesign-podcast (23)
- # clojurescript (13)
- # code-reviews (2)
- # component (22)
- # core-typed (7)
- # cursive (64)
- # datascript (12)
- # datomic (60)
- # emacs (6)
- # fulcro (54)
- # graalvm (11)
- # graphql (3)
- # hoplon (25)
- # jobs (1)
- # joker (85)
- # juxt (5)
- # kaocha (10)
- # klipse (8)
- # malli (2)
- # off-topic (36)
- # parinfer (1)
- # pathom (1)
- # re-frame (9)
- # reagent (4)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (24)
- # spacemacs (1)
- # sql (39)
- # tools-deps (10)
- # tree-sitter (18)
- # xtdb (18)
i tried to compute the total for range creation for clojure.core and the numbers i'm seeing are 130ms to 140ms -- that's totaling up the difference between times right before creating a range and right after creation.
my initial measurements suggest that just traversing the tree (no range creation and thus no coloring either) takes 200ms or so.
may be i should try using the query api to see if there is any difference in taversal speed.
i'm not sure if i'm doing this stuff right though (collecting (.getTime (js/Date.))
) -- will try to go over this stuff more again later.
i found this but haven't digested it yet: https://www.nicoespeon.com/en/2019/11/fix-vscode-extension-performance-issue/
btw, the machine i'm testing on is one of these: https://www.msi.com/Content-creation/Prestige-15-A10X/Specification
may be your cpu is this? https://ark.intel.com/content/www/us/en/ark/products/191045/intel-core-i7-9750h-processor-12m-cache-up-to-4-50-ghz.html
Can you somehow see if making ranges for large files is somehow more expensive than in “normal” files?
i chose clojure's main.clj which is approximately 1/10 in length:
$ ls -al main.clj core.clj
-rw-r--r-- 1 user user 263653 Feb 10 12:18 core.clj
-rw-r--r-- 1 user user 26200 Aug 14 2019 main.clj
the time it took was about 1/10 as wellha ha ha 🙂 well, i hope i'm not screwing things up on this end -- it's entirely possbile!