This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-17
Channels
- # aleph (2)
- # announcements (20)
- # aws (43)
- # aws-lambda (5)
- # babashka (9)
- # beginners (231)
- # calva (4)
- # cider (12)
- # cljdoc (8)
- # cljsrn (3)
- # clojure (47)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (41)
- # clojure-uk (47)
- # clojuredesign-podcast (3)
- # clojurescript (20)
- # cryogen (3)
- # cursive (4)
- # data-science (2)
- # datomic (15)
- # emacs (4)
- # fulcro (21)
- # jackdaw (6)
- # jobs (1)
- # joker (13)
- # juxt (8)
- # kaocha (10)
- # malli (7)
- # off-topic (29)
- # pathom (11)
- # re-frame (19)
- # reagent (3)
- # reitit (26)
- # remote-jobs (8)
- # schema (2)
- # shadow-cljs (112)
- # spacemacs (1)
- # tools-deps (49)
- # vim (2)
- # xtdb (7)
I'm curious if anyone would know of this to be a problem.
(defmacro slurp [file]
(clojure.core/slurp (io/file (io/resource file))))
(ns ezmonic.e-data
(:require [cljs.reader :as reader])
(:require-macros [ezmonic.util :refer [slurp]]))
(defonce data
(reader/read-string (slurp "number-to-word-tree.edn")))
I'm using that to read a Is it possible that your phone has to do a bunch of work to serialize/deserialize the app’s state to disk on sleep/wake?
My first guess is that something else is going on, but you could always test it out by making a test app that does nothing except that and seeing what happens.