mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-11 21:50:57 +01:00
c.f. 35268: revert completion cache optimisation for now
This commit is contained in:
parent
9a6f55dc7a
commit
899613f535
2 changed files with 6 additions and 9 deletions
|
|
@ -1,5 +1,9 @@
|
|||
2015-05-26 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* see 35268: revert 34476 (ae7dcab) as it seems to be having
|
||||
effects beyond the intended optimisation of completion caching.
|
||||
To be investigated further after the release.
|
||||
|
||||
* Han Pingtian: 35295: Functions/Zftp/zfcd_match: be more
|
||||
inventive zftp directory listing.
|
||||
|
||||
|
|
|
|||
|
|
@ -46,15 +46,8 @@ if zstyle -t ":completion:${curcontext}:" use-cache; then
|
|||
for var; do
|
||||
case ${(Pt)var} in
|
||||
(*readonly*) ;;
|
||||
(*(association|array)*)
|
||||
# Dump the array as a here-document to reduce parsing overhead
|
||||
# when reloading the cache with "source" from _retrieve_cache
|
||||
print -r "$var=( "'"${(zQ)$(<<\EO:'"$var"
|
||||
print -r "${(kv@Pqq)^^var}"
|
||||
print -r "EO:$var"
|
||||
print -r ')}" )'
|
||||
;;
|
||||
(*) print -r "$var=${(Pqq)^^var}";;
|
||||
(*(association|array)*) print -r "$var=( ${(kv@Pqq)^^var} )";;
|
||||
(*) print -r "$var=${(Pqq)^^var}";;
|
||||
esac
|
||||
done >! "$_cache_dir/$_cache_ident"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue