aboutsummaryrefslogtreecommitdiff
path: root/tests/prop.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-09 22:19:01 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-09 22:19:01 +0200
commitf56daa40756cb4f356c283567de9cbc050bd86b1 (patch)
tree778a1bbada2a00acc854a85721f36618b6ce4f6b /tests/prop.scm
parentClean up util header. (diff)
parentAdd short commentary on difference between parse and parse/component. (diff)
downloadcalp-f56daa40756cb4f356c283567de9cbc050bd86b1.tar.gz
calp-f56daa40756cb4f356c283567de9cbc050bd86b1.tar.xz
Replace iCalendar parser.
The old iCalendar parser was a direct port of my C parser, which unfortunately clashed with guile's evaluation model, and was therefore really slow. This new one is much schemier [sic?], and therefore much faster. On my laptop the parse time went from around 10s to 2.5s, so a 4x speedup!
Diffstat (limited to 'tests/prop.scm')
-rw-r--r--tests/prop.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/prop.scm b/tests/prop.scm
index a302d790..a178170d 100644
--- a/tests/prop.scm
+++ b/tests/prop.scm
@@ -3,9 +3,9 @@
((util) sort*))
(define v (call-with-input-string
- "BEGIN:VCOMPONENT
+ "BEGIN:DUMMY
KEY;A=1;B=2:Some text
-END:VCOMPONENT"
+END:DUMMY"
parse-calendar))
(test-equal '("1") (prop (attr* v 'KEY) 'A))