Rename free functions to avoid gc'ing too much

This commit is contained in:
Alex Crichton 2018-02-06 11:54:40 -08:00
parent 7384bd1967
commit aa90715896

View File

@ -50,7 +50,7 @@ pub struct Function {
}
pub fn free_function(struct_name: &str) -> String {
let mut name = format!("__wbindgen_");
let mut name = format!("__wbg_");
name.extend(struct_name
.chars()
.flat_map(|s| s.to_lowercase()));