summaryrefslogtreecommitdiff
path: root/src/lib/ector/gl/ector_gl_surface.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 14:39:14 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 11:58:53 +0900
commitcb3b4cc8d7794bea575a85325c8a58f25f0507b2 (patch)
treee66759e6735215cedfc755c36a258f0ce09f8011 /src/lib/ector/gl/ector_gl_surface.eo
parent05c051405e89ef595f117f637dbbb0104262c218 (diff)
elm image: Fix async open to avoid multiple mmap
Reported by @jiin.moon: In case of async_open for an elm_image, we try and open a file in a thread, then map it and populate a bit, as this may take some time (blocking I/O). This creates a mmap with eina_file_map_new. But later evas image loaders will (usually) try and map the entire file with eina_file_map_all() which creates another mmap. Since the size is different (32Kb first then all) the returned map might be different (it's up to the kernel to decide at this point). So, in order to avoid having multiple maps on the same file, and try to reduce the peak memory usage, we should prefer using the same map all the time, i.e. the global one returned by eina_file_map_all(). This patch relies on the previous patch in eina_file which fixes eina_file_map_populate() for the global map. @fix
Diffstat (limited to 'src/lib/ector/gl/ector_gl_surface.eo')
0 files changed, 0 insertions, 0 deletions