Skip to content
Snippets Groups Projects
Commit a5b6dcc0 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Disable cache to improve performance

parent 4ecb62da
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ use std::sync::Arc;
use std::thread;
use spin::Mutex;
use cache::Cache;
// use cache::Cache;
use image::Image;
use scheme::FileScheme;
......@@ -36,7 +36,7 @@ fn main() {
let status_daemon = status_mutex.clone();
thread::spawn(move || {
match Image::open(&path).map(|image| Cache::new(image)) {
match Image::open(&path) /* .map(|image| Cache::new(image)) */ {
Ok(disk) => match FileSystem::open(Box::new(disk)) {
Ok(fs) => match File::create(":file") {
Ok(mut socket) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment