]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/unix/utils.cpp
Prefer more cache-efficient containers
[libs/core.git] / source / fs / unix / utils.cpp
index c832343f76e822bacf4184ddc11379f750ee950d..a960b4051d3e59e283137b7490be2517ccdb6113 100644 (file)
@@ -1,4 +1,5 @@
 #include <cstdio>
+#include <deque>
 #include <unistd.h>
 #include <msp/core/systemerror.h>
 #include "dir.h"
@@ -21,7 +22,7 @@ Path readlink(const Path &link)
 
 Path realpath(const Path &path)
 {
-       list<string> queue(path.begin(), path.end());
+       deque<string> queue(path.begin(), path.end());
        if(!path.is_absolute())
        {
                Path cwd = getcwd();