diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-02-24 23:07:37 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-24 23:07:37 +0100 |
commit | c27c3f10fd8c32e837c1f11176dc7223542bda6d (patch) | |
tree | 5c5cf1900071c8dac231409364f9948d4f6bc48f /apps | |
parent | 3a3d26eee223f5d7307b9ab31d0dee93c82a41f5 (diff) | |
download | rockbox-c27c3f10fd8c32e837c1f11176dc7223542bda6d.tar.gz rockbox-c27c3f10fd8c32e837c1f11176dc7223542bda6d.zip |
hosted/multidrive: Speed up readdir()/get_dir_info().
The two functions need to check whether they are called for a specific path
to implement the virtual mount point for the external storage. This
is statistically rare and a hit on the common case. Therefore speed up
the common case by performing integer comparision first, and only expensive
string construction and comparision if that succeeds.
Change-Id: I3c41fe073e1f4f8eb62d2b8556a36937c9cb8290
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions