Comment on Why Journiv Doesn't Use CalDAV (And Why That Makes It More Open)
rockstar1215@lemmy.world 5 days agoHello, Sorry for the late reply. I do not use lemmy that often and only saw this now when I came here to post about new release. You’re right to call that out. I made an oversimplified claim. Let me clarify, XML vs JSON performance is nuanced:
- Parsing speed: JSON is generally faster to parse than XML because:
- Simpler syntax (no opening/closing tags, no attributes vs elements decisions)
- Less data structure overhead
- More direct mapping to native data structures in most languages
- Payload size: XML is typically more verbose due to:
- Opening and closing tags
- Namespace declarations
- Attribute syntax
- This means larger network transfers
However:
- Well-optimized XML parsers can be very fast
- The difference matters more for high-volume APIs than occasional journal syncs
- For large text content (like journal entries), the actual content dwarfs the format overhead