mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
try to speed up needs_move(), introduce LazyMsg
This commit is contained in:
@@ -30,6 +30,7 @@ use crate::sql::Sql;
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Context {
|
||||
pub(crate) inner: Arc<InnerContext>,
|
||||
pub disable_needs_move: bool, // TODO just added for some extra profiling info
|
||||
}
|
||||
|
||||
impl Deref for Context {
|
||||
@@ -157,6 +158,7 @@ impl Context {
|
||||
|
||||
let ctx = Context {
|
||||
inner: Arc::new(inner),
|
||||
disable_needs_move: false,
|
||||
};
|
||||
ctx.sql.open(&ctx, &ctx.dbfile, false).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user