Skip to content
Snippets Groups Projects
  1. May 16, 2016
  2. Apr 24, 2016
  3. Apr 14, 2016
    • Arseny Kapoulkine's avatar
      Adjust XML allocation pages to have the exact specified size · 2d5980b4
      Arseny Kapoulkine authored
      Previously the page size was defining the data size, and due to additional
      headers (+ recently removed allocation padding) the actual allocation was a bit
      bigger.
      
      The problem is that some allocators round 2^N+k allocations to 2^N+M, which can
      result in noticeable waste of space. Specifically, on 64-bit OSX allocating the
      previous page size (32k+40) resulted in 32k+512 allocation, thereby wasting 472
      bytes, or 1.4%.
      
      Now we have the allocation size specified exactly and just recompute the available
      data size, which can in small space savings depending on the allocator.
      2d5980b4
    • 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
  4. Apr 03, 2016
  5. Mar 28, 2016
  6. Mar 24, 2016
  7. Feb 13, 2016
  8. Feb 03, 2016
  9. Feb 02, 2016
  10. Jan 27, 2016
  11. Jan 26, 2016
  12. Jan 24, 2016
  13. 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
  14. Jan 20, 2016
  15. 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
  16. Jan 13, 2016
  17. Jan 10, 2016
  18. Jan 08, 2016
  19. Dec 31, 2015
Loading