Skip to content
Snippets Groups Projects
  1. Apr 14, 2016
    • Arseny Kapoulkine's avatar
      Remove extra space in an empty tag for format_raw · 2e0ed828
      Arseny Kapoulkine authored
      When using format_raw the space in the empty tag (<node />) is the only
      character that does not have to be there; so format_raw almost results in
      a minimal XML but not quite.
      
      It's pretty unlikely that this is crucial for any users - the formatting
      change should be benign, and it's better to improve format_raw than to add
      yet another flag.
      
      Fixes #87.
      2e0ed828
  2. Apr 03, 2016
  3. Mar 28, 2016
  4. Mar 24, 2016
  5. Feb 13, 2016
  6. Feb 03, 2016
  7. Feb 02, 2016
  8. Jan 27, 2016
  9. Jan 26, 2016
  10. Jan 24, 2016
  11. Jan 21, 2016
    • Arseny Kapoulkine's avatar
      Change header format in non-compact mode to store page offset · 7f913019
      Arseny Kapoulkine authored
      This utilizes the fact that pages are of limited size so we can store offset
      from the object to the page in a few bits - we currently use 24 although that's
      excessive given that pages are limited to ~512k.
      
      This has several benefits:
      
      - Pages do not have to be 64b aligned any more - this simplifies allocation flow
      and frees up 40-50 bytes from xml_document::_memory.
      
      - Header now has 8 bits available for metadata for both compact and default mode
      which makes it possible to store type as-is (allowing easy type extension and
      removing one add/sub operation from type checks).
      
      - One extra bit is easily available for future metadata extension (in addition
      to the bit for type encoding that could be reclaimed if necessary).
      
      - Allocators that return 4b-aligned memory on 64-bit platforms work fine if
      misaligned reads are supported.
      
      The downside is that there is one or two extra instructions on the allocation
      path. This does not seem to hurt parsing performance.
      7f913019
  12. Jan 20, 2016
  13. Jan 14, 2016
    • Arseny Kapoulkine's avatar
      Merge pull request #79 from zeux/embed-pcdata · c388dbeb
      Arseny Kapoulkine authored
      Add parse_embed_pcdata flag
      
      This flag determines if plain character data is be stored in the parent element's value. This significantly changes the structure of the document; this flag is only recommended for parsing documents with a lot of PCDATA nodes in a very memory-constrained environment.
      
      Most high-level APIs continue to work; code that inspects DOM using first_child()/value() will have to be adapted.
      c388dbeb
  14. Jan 13, 2016
  15. Jan 10, 2016
  16. Jan 08, 2016
  17. Dec 31, 2015
  18. Dec 30, 2015
  19. Dec 29, 2015
Loading