#memory #memory-size #servo #fork #codebase #corpus #search

graphannis-malloc_size_of

This is a fork of the malloc_size_of crate, which is part of the Servo codebase, to make it available to the graphANNIS corpus search library as dependency

5 releases (3 stable)

Uses old Rust 2015

2.0.0 Feb 14, 2023
1.1.0 Feb 8, 2021
1.0.0 Oct 11, 2018
0.1.0 Oct 11, 2018
0.0.1 Aug 5, 2018

#332 in Memory management

Download history 18/week @ 2024-02-26 6/week @ 2024-03-04 13/week @ 2024-03-11 7/week @ 2024-03-18 5/week @ 2024-03-25 32/week @ 2024-04-01 3/week @ 2024-04-08 18/week @ 2024-04-22 2/week @ 2024-04-29 1/week @ 2024-05-20 19/week @ 2024-06-03 62/week @ 2024-06-10

82 downloads per month

Apache-2.0

26KB
453 lines

Documentation link

graphannis-malloc_size_of

This is a fork of the malloc_size_of crate, which is part of the Servo codebase but was not published on crates.io at the time of the fork. The intention of this fork is to make the functionality of the original crate available to the graphANNIS corpus search library, which is published on crates.io.

The following changes have been made in comparision to the original crate:

  • References and implementations to internal/unpublished Servo crates have been removed.
  • All dependencies have been made optional, so if you want to use the memory size calculation for types not in the standard library you have to activate these as a feature. The following crates are available as optional dependencies/features:
    • app_units
    • cssparser
    • serde
    • serde_bytes
    • smallbitvec
    • smallvec
    • smartstring
    • string_cache
    • thin-slice
    • url
    • void
    • xml5ever

Dependencies

~0–5.5MB
~20K SLoC