efl/src/bin/efreet
Carsten Haitzler 561f8eaa8f efreet - save about 240-300k or so of memory used by efreet mime
so efreet mime was loading a bunch of mime type info files, parsing
them on startup and allocating memory to store all this mime info -
globs, mimetype strings and more. all a big waste of memory as its
allocated on the heap per process where its the SAME data files loaded
every time.

so make an efreet mime cache file and a tool to create it from mime
files. mmap this file with all the hashes/strings in it so all that
data is mmaped once in memory and shared between all processes and it
is only paged in on demand - as actually read/needed so if your
process doesnt need to know about mime stuff.. it wont touch it anyway.

this saves about 240-300k or so of memory in my tests. this has not
covered the mime MAGIC files which still consume memory and are on the
heap. this is more complex so it will take more time to come up with a
nice file format for the data that is nicely mmaped etc.

@optimize
2016-08-23 12:04:06 +09:00
..
.gitignore efreet - save about 240-300k or so of memory used by efreet mime 2016-08-23 12:04:06 +09:00
efreet_desktop_cache_create.c efreetd - fix more cache path handling to live in the cache dir 2016-04-08 12:41:36 +09:00
efreet_icon_cache_create.c efreet_icon_cache_create: null theme eet file to avoid double free 2015-12-16 13:40:00 -05:00
efreet_mime_cache_create.c efreet - save about 240-300k or so of memory used by efreet mime 2016-08-23 12:04:06 +09:00
efreetd.c efreetd - only open log file is env var is set to do so 2016-08-19 11:48:29 +09:00
efreetd.h efl: Unified eina critical manro to CRI. 2013-12-26 12:27:13 +09:00
efreetd_cache.c efreet - save about 240-300k or so of memory used by efreet mime 2016-08-23 12:04:06 +09:00
efreetd_cache.h efl: merge efreet. 2012-12-29 23:04:40 +00:00
efreetd_ipc.c efreet - save about 240-300k or so of memory used by efreet mime 2016-08-23 12:04:06 +09:00
efreetd_ipc.h efreet - save about 240-300k or so of memory used by efreet mime 2016-08-23 12:04:06 +09:00