stdlib: Stop incurring vtable dispatch costs when hashmaps are used

This required changing almost all users of hashmaps to import the hashmap interface first.

The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
This commit is contained in:
Patrick Walton 2012-03-07 16:48:57 -08:00
parent a9bd76b3c1
commit f0250a23d3
49 changed files with 95 additions and 47 deletions

View file

@ -1,6 +1,7 @@
// Decoding metadata from a single crate's metadata
import std::{ebml, map, io};
import std::map::hashmap;
import io::writer_util;
import syntax::{ast, ast_util};
import driver::session::session;