From b3bb94040080ac18aab04b010752d4984feee37b Mon Sep 17 00:00:00 2001 From: StrawberryTea Date: Fri, 27 Oct 2023 03:44:58 -0400 Subject: [PATCH] PERF/circadian.el: use memoized sunset & sunrise times (#29) --- circadian.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circadian.el b/circadian.el index 6693e0c..ac085c9 100644 --- a/circadian.el +++ b/circadian.el @@ -166,12 +166,12 @@ (let ((sunrise (circadian-sunrise))) (if (equal sunrise "not") (error "Could not get valid sunset time — check your time zone settings")) - (circadian-sunrise))) + sunrise)) ((cl-equalp input :sunset) (let ((sunset (circadian-sunset))) (if (equal sunset "on") (error "Could not get valid sunset time — check your time zone settings")) - (circadian-sunset))) + sunset)) ((stringp input) (circadian--string-to-time input)))) ;;;###autoload