Use faster fxhashset in registry
This commit is contained in:
parent
d9ef6c7806
commit
ef811ecfa9
@ -3,8 +3,8 @@ use crate::{
|
|||||||
string::{DROP_BUFFER_FN, IS_UTF8_FN, lua_buffer},
|
string::{DROP_BUFFER_FN, IS_UTF8_FN, lua_buffer},
|
||||||
};
|
};
|
||||||
pub use luaffi_impl::*;
|
pub use luaffi_impl::*;
|
||||||
|
use rustc_hash::FxHashSet;
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
|
||||||
ffi::{c_double, c_float, c_void},
|
ffi::{c_double, c_float, c_void},
|
||||||
fmt::{self, Display, Formatter, Write},
|
fmt::{self, Display, Formatter, Write},
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
@ -128,8 +128,8 @@ fn cache_local(f: &mut Formatter, list: &[(&str, &str)]) -> fmt::Result {
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct Registry {
|
pub struct Registry {
|
||||||
types: HashSet<String>,
|
types: FxHashSet<String>,
|
||||||
decls: HashSet<String>,
|
decls: FxHashSet<String>,
|
||||||
cdef: String,
|
cdef: String,
|
||||||
lua: String,
|
lua: String,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user