summaryrefslogtreecommitdiff
path: root/firmware/load_code.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-24 23:07:37 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-24 23:07:37 +0100
commitc27c3f10fd8c32e837c1f11176dc7223542bda6d (patch)
tree5c5cf1900071c8dac231409364f9948d4f6bc48f /firmware/load_code.c
parent3a3d26eee223f5d7307b9ab31d0dee93c82a41f5 (diff)
downloadrockbox-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 'firmware/load_code.c')
0 files changed, 0 insertions, 0 deletions